mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-12 06:33:59 +00:00
Collapse stories on search in chat.
This commit is contained in:
@@ -3648,6 +3648,9 @@ bool Widget::applySearchState(SearchState state) {
|
||||
? peer->owner().history(migrateFrom).get()
|
||||
: nullptr;
|
||||
_searchState = state;
|
||||
if (inChatChanged && _searchState.inChat && _stories) {
|
||||
storiesExplicitCollapse();
|
||||
}
|
||||
if (_chatFilters && (queryEmptyChanged || inChatChanged)) {
|
||||
_chatFilters->setVisible(_searchState.query.isEmpty()
|
||||
&& !_openedForum
|
||||
|
||||
Reference in New Issue
Block a user