2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix topics search in topic groups.

Fixes #28110.
This commit is contained in:
John Preston
2024-07-02 09:53:56 +04:00
parent f75429cbaa
commit ab20f8eb31

View File

@@ -100,7 +100,9 @@ ChatSearchTab SearchState::defaultTabForMe() 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