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() {
|
||||
if(chatPage.state === "selectMessages") {
|
||||
return
|
||||
}
|
||||
if (chatOnlineMemberCount > 0) {
|
||||
chatStatusText.text = qsTr("%1 members, %2 online").arg(Functions.getShortenedCount(chatGroupInformation.member_count)).arg(Functions.getShortenedCount(chatOnlineMemberCount));
|
||||
} else {
|
||||
|
@ -268,14 +271,12 @@ Page {
|
|||
}
|
||||
function hasSendPrivilege(privilege) {
|
||||
var groupStatus = chatGroupInformation ? chatGroupInformation.status : null;
|
||||
var groupStatusType = grouptStatus ? groupStatus["@type"] : null;
|
||||
var groupStatusType = groupStatus ? groupStatus["@type"] : null;
|
||||
return chatPage.isPrivateChat
|
||||
|| (groupStatusType === "chatMemberStatusMember" && chatInformation.permissions[privilege])
|
||||
|| groupStatusType === "chatMemberStatusAdministrator"
|
||||
|| groupStatusType === "chatMemberStatusCreator"
|
||||
|| (groupStatusType === "chatMemberStatusRestricted" && groupStatus.permissions[privilege])
|
||||
|
||||
|
||||
}
|
||||
|
||||
Timer {
|
||||
|
|
Loading…
Reference in a new issue