fix typo; don't update group status while selecting

This commit is contained in:
John Gibbon 2020-11-17 16:21:20 +01:00
parent 3cce631aa7
commit 59304527d2

View file

@ -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 {