fix typo; don't update group status while selecting
This commit is contained in:
parent
3cce631aa7
commit
59304527d2
1 changed files with 4 additions and 3 deletions
|
@ -108,6 +108,9 @@ Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateGroupStatusText() {
|
function updateGroupStatusText() {
|
||||||
|
if(chatPage.state === "selectMessages") {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (chatOnlineMemberCount > 0) {
|
if (chatOnlineMemberCount > 0) {
|
||||||
chatStatusText.text = qsTr("%1 members, %2 online").arg(Functions.getShortenedCount(chatGroupInformation.member_count)).arg(Functions.getShortenedCount(chatOnlineMemberCount));
|
chatStatusText.text = qsTr("%1 members, %2 online").arg(Functions.getShortenedCount(chatGroupInformation.member_count)).arg(Functions.getShortenedCount(chatOnlineMemberCount));
|
||||||
} else {
|
} else {
|
||||||
|
@ -268,14 +271,12 @@ Page {
|
||||||
}
|
}
|
||||||
function hasSendPrivilege(privilege) {
|
function hasSendPrivilege(privilege) {
|
||||||
var groupStatus = chatGroupInformation ? chatGroupInformation.status : null;
|
var groupStatus = chatGroupInformation ? chatGroupInformation.status : null;
|
||||||
var groupStatusType = grouptStatus ? groupStatus["@type"] : null;
|
var groupStatusType = groupStatus ? groupStatus["@type"] : null;
|
||||||
return chatPage.isPrivateChat
|
return chatPage.isPrivateChat
|
||||||
|| (groupStatusType === "chatMemberStatusMember" && chatInformation.permissions[privilege])
|
|| (groupStatusType === "chatMemberStatusMember" && chatInformation.permissions[privilege])
|
||||||
|| groupStatusType === "chatMemberStatusAdministrator"
|
|| groupStatusType === "chatMemberStatusAdministrator"
|
||||||
|| groupStatusType === "chatMemberStatusCreator"
|
|| groupStatusType === "chatMemberStatusCreator"
|
||||||
|| (groupStatusType === "chatMemberStatusRestricted" && groupStatus.permissions[privilege])
|
|| (groupStatusType === "chatMemberStatusRestricted" && groupStatus.permissions[privilege])
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|
Loading…
Reference in a new issue