mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 21:27:07 +02:00
parent
f75429cbaa
commit
ab20f8eb31
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ ChatSearchTab SearchState::defaultTabForMe() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SearchState::filterChatsList() const {
|
bool SearchState::filterChatsList() const {
|
||||||
return !inChat && (tab == ChatSearchTab::MyMessages);
|
using Tab = ChatSearchTab;
|
||||||
|
return !inChat // ThisPeer can be in opened forum.
|
||||||
|
&& (tab == Tab::MyMessages || tab == Tab::ThisPeer);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Dialogs
|
} // namespace Dialogs
|
||||||
|
|
Loading…
Add table
Reference in a new issue