Fix permission count

(cherry picked from commit c1a8300dc8)
This commit is contained in:
NekoInverter 2020-05-11 09:30:18 +08:00 committed by 世界
parent 8b06674ee3
commit 5e5e2e8352
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 4 additions and 1 deletions

View File

@ -1184,6 +1184,9 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image
if (!currentChat.default_banned_rights.send_stickers) {
count++;
}
if (!currentChat.default_banned_rights.send_gifs) {
count++;
}
if (!currentChat.default_banned_rights.send_media) {
count++;
}
@ -1206,7 +1209,7 @@ public class ChatEditActivity extends BaseFragment implements ImageUpdater.Image
count++;
}
} else {
count = 8;
count = 9;
}
blockCell.setTextAndValueAndIcon(LocaleController.getString("ChannelPermissions", R.string.ChannelPermissions), count + " / 9", R.drawable.baseline_block_24, true);
}