From 1f69c61d51c2ecc40ed05f3dafac4c30283d8652 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 14 Jul 2023 14:58:06 +0400 Subject: [PATCH] Fix init glitch in ComposeControls. --- .../SourceFiles/chat_helpers/emoji_suggestions_widget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); }