Fix search in topic cancel on forum closing.

This commit is contained in:
John Preston 2022-11-07 20:01:18 +04:00
parent 80d4c3affe
commit 153fb3e579
1 changed files with 1 additions and 3 deletions

View File

@ -750,9 +750,7 @@ void Widget::changeOpenedFolder(Data::Folder *folder, anim::type animated) {
void Widget::changeOpenedForum(ChannelData *forum, anim::type animated) { void Widget::changeOpenedForum(ChannelData *forum, anim::type animated) {
changeOpenedSubsection([&] { changeOpenedSubsection([&] {
if (forum) { cancelSearch();
cancelSearch();
}
_openedForum = forum; _openedForum = forum;
_api.request(base::take(_topicSearchRequest)).cancel(); _api.request(base::take(_topicSearchRequest)).cancel();
_inner->changeOpenedForum(forum); _inner->changeOpenedForum(forum);