2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Support structured bindings in base::flat_map.

This commit is contained in:
John Preston
2018-11-16 13:07:22 +04:00
parent d6b4448d3c
commit 8a3615281c
6 changed files with 129 additions and 6 deletions

View File

@@ -656,7 +656,7 @@ void EditChatAdminsBoxController::rebuildRows() {
admins.reserve(allAdmins ? _chat->participants.size() : _chat->admins.size());
others.reserve(_chat->participants.size());
for (auto [user, version] : _chat->participants) {
for (const auto [user, version] : _chat->participants) {
if (user->id == peerFromUser(_chat->creator)) continue;
if (_chat->admins.contains(user)) {
admins.push_back(user);