diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index 1cf45d762..08b5abf14 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -638,7 +638,7 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) { } } } - const auto shortcuts = _user + const auto shortcuts = (_user && !_user->isBot()) ? _user->owner().shortcutMessages().shortcuts().list : base::flat_map(); if (!hasUsername && !shortcuts.empty()) {