From b3525372796f6eb0e8a4417ac258ce251dfeb839 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 14 Aug 2023 22:58:42 +0200 Subject: [PATCH] Version 4.9: Fix build with Xcode. --- Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index 4285247a1..8f5f5fec5 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -496,7 +496,7 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) { _channel->session().api().chatParticipants().requestAdmins(_channel); } else { mrows.reserve(mrows.size() + _channel->mgInfo->admins.size()); - for (const auto [userId, rank] : _channel->mgInfo->admins) { + for (const auto &[userId, rank] : _channel->mgInfo->admins) { if (const auto user = _channel->owner().userLoaded(userId)) { if (user->isInaccessible()) continue; if (!listAllSuggestions && filterNotPassedByName(user)) continue;