Online updated in the new profile covers. Covert to supergroup handled.

This commit is contained in:
John Preston
2016-06-04 23:29:16 +03:00
parent 855d44b9d8
commit 3915576673
9 changed files with 45 additions and 6 deletions
+10
View File
@@ -552,6 +552,16 @@ void ChannelData::flagsUpdated() {
}
}
void ChannelData::selfAdminUpdated() {
if (isMegagroup()) {
if (amEditor()) {
mgInfo->lastAdmins.insert(App::self());
} else {
mgInfo->lastAdmins.remove(App::self());
}
}
}
ChannelData::~ChannelData() {
delete mgInfo;
}