From 153fb3e5797baabaa8e68880f2f06cdf342bb69b Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 7 Nov 2022 20:01:18 +0400 Subject: [PATCH] Fix search in topic cancel on forum closing. --- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index 9a29f8171f..7ac389b830 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -750,9 +750,7 @@ void Widget::changeOpenedFolder(Data::Folder *folder, anim::type animated) { void Widget::changeOpenedForum(ChannelData *forum, anim::type animated) { changeOpenedSubsection([&] { - if (forum) { - cancelSearch(); - } + cancelSearch(); _openedForum = forum; _api.request(base::take(_topicSearchRequest)).cancel(); _inner->changeOpenedForum(forum);