mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Display admin badges in supergroups.
Also prefer std containers to Qt and OrderedSet in data_peer.
This commit is contained in:
@@ -365,9 +365,9 @@ void Cover::refreshStatusText() {
|
||||
if (!chat->amIn()) {
|
||||
return lang(lng_chat_status_unaccessible);
|
||||
}
|
||||
auto fullCount = qMax(
|
||||
auto fullCount = std::max(
|
||||
chat->count,
|
||||
chat->participants.size());
|
||||
int(chat->participants.size()));
|
||||
return ChatStatusText(fullCount, _onlineCount, true);
|
||||
} else if (auto channel = _peer->asChannel()) {
|
||||
auto fullCount = qMax(channel->membersCount(), 1);
|
||||
|
Reference in New Issue
Block a user