mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Online updated in the new profile covers. Covert to supergroup handled.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user