mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-18 13:59:46 +00:00
Display admin badges in supergroups.
Also prefer std containers to Qt and OrderedSet in data_peer.
This commit is contained in:
@@ -87,9 +87,8 @@ void ChatSearchFromController::rebuildRows() {
|
||||
QMultiMap<int32, UserData*> ordered;
|
||||
if (_chat->noParticipantInfo()) {
|
||||
Auth().api().requestFullPeer(_chat);
|
||||
} else if (!_chat->participants.isEmpty()) {
|
||||
for (auto i = _chat->participants.cbegin(), e = _chat->participants.cend(); i != e; ++i) {
|
||||
auto user = i.key();
|
||||
} else if (!_chat->participants.empty()) {
|
||||
for (const auto [user, version] : _chat->participants) {
|
||||
ordered.insertMulti(App::onlineForSort(user, now), user);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user