No isolate/only-custom emoji for text appearing.

This commit is contained in:
John Preston
2026-04-21 22:28:39 +07:00
parent ae7ab838f4
commit 1abea47914
@@ -122,7 +122,9 @@ EmojiPack::EmojiPack(not_null<Main::Session*> session)
EmojiPack::~EmojiPack() = default;
bool EmojiPack::add(not_null<ViewElement*> 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()) {