diff --git a/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp index 7233c5a21..a97d1fe42 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp @@ -778,6 +778,13 @@ SuggestionsController::SuggestionsController( updateForceHidden(); + _container->shownValue( + ) | rpl::filter([=](bool shown) { + return shown && !_shown; + }) | rpl::start_with_next([=] { + _container->hide(); + }, _container->lifetime()); + handleTextChange(); }