From c8ec183c88ad1069af4f84cb4cde4479424bde89 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Aug 2022 16:34:50 +0300 Subject: [PATCH] Fix custom emoji suggestions geometry. --- Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp index 0649fdbba..1b7f5e4bc 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp @@ -809,6 +809,7 @@ SuggestionsQuery SuggestionsController::getEmojiQuery() { } else if (format.isImageFormat()) { const auto imageName = format.toImageFormat().name(); if (const auto emoji = Emoji::FromUrl(imageName)) { + _queryStartPosition = position - 1; return emoji; } continue;