Fix cancel search glitch with the new search.

This commit is contained in:
John Preston 2024-06-01 23:26:02 +04:00
parent 12eecec501
commit 86778aa4d9
1 changed files with 1 additions and 1 deletions

View File

@ -2973,13 +2973,13 @@ bool Widget::applySearchState(SearchState state) {
if (queryChanged) {
updateLockUnlockVisibility(anim::type::normal);
updateLoadMoreChatsVisibility();
updateCancelSearch();
}
if (inChatChanged) {
controller()->setSearchInChat(_searchState.inChat);
updateSearchTabs();
}
if (queryChanged || inChatChanged) {
updateCancelSearch();
updateStoriesVisibility();
}
updateJumpToDateVisibility();