mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Don't add global posts search preview for in-chat start.
This commit is contained in:
parent
694ff32b01
commit
00a0e595ff
2 changed files with 4 additions and 2 deletions
|
@ -4208,7 +4208,8 @@ void InnerWidget::repaintPreviewResult(int index) {
|
||||||
|
|
||||||
bool InnerWidget::computeSearchWithPostsPreview() const {
|
bool InnerWidget::computeSearchWithPostsPreview() const {
|
||||||
return (_searchHashOrCashtag != HashOrCashtag::None)
|
return (_searchHashOrCashtag != HashOrCashtag::None)
|
||||||
&& (_searchState.tab == ChatSearchTab::MyMessages);
|
&& (_searchState.tab == ChatSearchTab::MyMessages)
|
||||||
|
&& !_searchState.inChat;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InnerWidget::clearFilter() {
|
void InnerWidget::clearFilter() {
|
||||||
|
|
|
@ -2942,7 +2942,8 @@ auto Widget::currentSearchProcess() -> not_null<SearchProcessState*> {
|
||||||
|
|
||||||
bool Widget::computeSearchWithPostsPreview() const {
|
bool Widget::computeSearchWithPostsPreview() const {
|
||||||
return (_searchHashOrCashtag != HashOrCashtag::None)
|
return (_searchHashOrCashtag != HashOrCashtag::None)
|
||||||
&& (_searchState.tab == ChatSearchTab::MyMessages);
|
&& (_searchState.tab == ChatSearchTab::MyMessages)
|
||||||
|
&& !_searchState.inChat;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::searchReceived(
|
void Widget::searchReceived(
|
||||||
|
|
Loading…
Add table
Reference in a new issue