diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index 4187513fe..e0a52d749 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -234,7 +234,8 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) { bool listAllSuggestions = _filter.isEmpty(); auto &recent(cRecentWriteHashtags()); hrows.reserve(recent.size()); - for (const auto &[tag, ratio] : recent) { + for (const auto &item : recent) { + const auto &tag = item.first; if (!listAllSuggestions && (tag.size() == _filter.size() || !TextUtilities::RemoveAccents(tag).startsWith(