2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Display custom admin ranks in messages.

This commit is contained in:
John Preston
2019-07-19 15:34:09 +02:00
parent 22f210ea8e
commit f36e2981ca
20 changed files with 252 additions and 140 deletions

View File

@@ -1100,7 +1100,7 @@ void History::applyServiceChanges(
mgInfo->botStatus = -1;
}
}
Data::ChannelAdminChanges(megagroup).feed(uid, false);
Data::ChannelAdminChanges(megagroup).remove(uid);
}
} break;
@@ -3093,8 +3093,7 @@ void History::clearUpTill(MsgId availableMinId) {
owner().sendHistoryChangeNotifications();
}
void History::applyGroupAdminChanges(
const base::flat_map<UserId, bool> &changes) {
void History::applyGroupAdminChanges(const base::flat_set<UserId> &changes) {
for (const auto &block : blocks) {
for (const auto &message : block->messages) {
message->data()->applyGroupAdminChanges(changes);