mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-06-02 03:53:42 +02:00
Don't show full topics list for trivial searches.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user