From 989689f0e09fdfea781747a9f94455f053000168 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 2 Feb 2023 09:46:01 +0400 Subject: [PATCH] Fix static emoji appearing in reaction categories. --- Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp index 9735a63674..1e4ec87f03 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp @@ -505,12 +505,10 @@ void EmojiListWidget::applyNextSearchQuery() { } _searchResults.clear(); _searchCustomIds.clear(); - if ((_mode == Mode::EmojiStatus) - || (_mode == Mode::UserpicBuilder) - || session().premium()) { + if (_mode != Mode::Full || session().premium()) { appendPremiumSearchResults(); } - if (_mode != Mode::EmojiStatus && _mode != Mode::UserpicBuilder) { + if (_mode == Mode::Full) { for (const auto emoji : plain) { _searchResults.push_back({ .id = { emoji },