From 2ccdcf8a9212865fa2f723a80e6318631d8c0d24 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 Aug 2025 17:44:42 +0400 Subject: [PATCH] Fix bad closing of suggestions. --- Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp index 8fddcb2aca..71b8171d1d 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp @@ -1941,6 +1941,9 @@ void Suggestions::setPostsSearchQuery(const QString &query) { if (!_postsSearch) { setupPostsSearch(); } + if (!query.isEmpty()) { + _persist = true; + } _searchQuery = query; _searchQueryTimer.cancel(); _postsSearch->setQuery(query);