2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Add rich supergroup/channel admin support.

This commit is contained in:
John Preston
2017-06-07 15:59:45 +03:00
parent 330b4a0b00
commit 513a9f8d45
13 changed files with 326 additions and 62 deletions

View File

@@ -768,8 +768,8 @@ void ChannelData::flagsUpdated() {
void ChannelData::selfAdminUpdated() {
if (isMegagroup()) {
if (amEditor()) {
mgInfo->lastAdmins.insert(App::self());
if (hasAdminRights()) {
mgInfo->lastAdmins.insert(App::self(), _adminRights);
} else {
mgInfo->lastAdmins.remove(App::self());
}