mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 02:50:36 +00:00
Merge tag 'v5.14.3' into dev
This commit is contained in:
@@ -3815,7 +3815,11 @@ void InnerWidget::searchReceived(
|
||||
clearPreviewResults();
|
||||
}
|
||||
|
||||
const auto key = (!_openedForum || _searchState.inChat.topic())
|
||||
const auto globalSearch = (_searchState.tab == ChatSearchTab::MyMessages)
|
||||
|| (_searchState.tab == ChatSearchTab::PublicPosts);
|
||||
const auto key = globalSearch
|
||||
? Key()
|
||||
: (!_openedForum || _searchState.inChat.topic())
|
||||
? _searchState.inChat
|
||||
: Key(_openedForum->history());
|
||||
if (inject
|
||||
@@ -4220,7 +4224,8 @@ void InnerWidget::repaintPreviewResult(int index) {
|
||||
|
||||
bool InnerWidget::computeSearchWithPostsPreview() const {
|
||||
return (_searchHashOrCashtag != HashOrCashtag::None)
|
||||
&& (_searchState.tab == ChatSearchTab::MyMessages);
|
||||
&& (_searchState.tab == ChatSearchTab::MyMessages)
|
||||
&& !_searchState.inChat;
|
||||
}
|
||||
|
||||
void InnerWidget::clearFilter() {
|
||||
|
||||
Reference in New Issue
Block a user