From 1abea4791496f764beac547865c77f7eb24ef33b Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 21 Apr 2026 22:28:39 +0700 Subject: [PATCH] No isolate/only-custom emoji for text appearing. --- Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp b/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp index 96ddbf0204..1e321ae4e4 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp @@ -122,7 +122,9 @@ EmojiPack::EmojiPack(not_null session) EmojiPack::~EmojiPack() = default; bool EmojiPack::add(not_null view) { - if (const auto custom = view->onlyCustomEmoji()) { + if (view->data()->textAppearing()) { + return false; + } else if (const auto custom = view->onlyCustomEmoji()) { _onlyCustomItems.emplace(view); return true; } else if (const auto emoji = view->isolatedEmoji()) {