mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Display admin badges in supergroups.
Also prefer std containers to Qt and OrderedSet in data_peer.
This commit is contained in:
@@ -186,7 +186,7 @@ rpl::producer<int> MembersCountValue(
|
||||
Notify::PeerUpdate::Flag::MembersChanged)
|
||||
| rpl::map([chat] {
|
||||
return chat->amIn()
|
||||
? qMax(chat->count, chat->participants.size())
|
||||
? std::max(chat->count, int(chat->participants.size()))
|
||||
: 0;
|
||||
});
|
||||
} else if (auto channel = peer->asChannel()) {
|
||||
|
Reference in New Issue
Block a user