Don't show full topics list for trivial searches.

This commit is contained in:
John Preston
2026-05-25 15:07:50 +04:00
parent 9245d88a7d
commit e76abf5776
@@ -2802,8 +2802,8 @@ bool Widget::peerSearchRequired() const {
bool Widget::searchForTopicsRequired(const QString &query) const {
return _searchState.filterChatsList()
&& _openedForum
&& !query.isEmpty()
&& (IsHashOrCashtagSearchQuery(query) == HashOrCashtag::None)
&& !TextUtilities::PrepareSearchWords(query).isEmpty()
&& !_openedForum->topicsList()->loaded();
}