mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Close forum when searching in different chat.
This commit is contained in:
@@ -2742,6 +2742,11 @@ void Widget::showMainMenu() {
|
||||
}
|
||||
|
||||
void Widget::searchMessages(SearchState state) {
|
||||
if (const auto peer = state.inChat.peer()) {
|
||||
if (_openedForum && peer->forum() != _openedForum) {
|
||||
controller()->closeForum();
|
||||
}
|
||||
}
|
||||
applySearchState(std::move(state));
|
||||
session().local().saveRecentSearchHashtags(_searchState.query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user