Reworking hashtag fix
This commit is contained in:
parent
52aaa0dc73
commit
59c03bb521
1 changed files with 7 additions and 7 deletions
|
|
@ -151,15 +151,15 @@ void searchByHashtag(const QString &tag, PeerData *inPeer) {
|
||||||
controller->closeFolder();
|
controller->closeFolder();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (const auto m = App::main()) {
|
|
||||||
Ui::hideSettingsAndLayer();
|
Ui::hideSettingsAndLayer();
|
||||||
Core::App().hideMediaView();
|
Core::App().hideMediaView();
|
||||||
m->searchMessages(
|
if (const auto m = window->mainWidget()) {
|
||||||
tag + ' ',
|
m->searchMessages(
|
||||||
(inPeer && !inPeer->isUser())
|
tag + ' ',
|
||||||
? inPeer->owner().history(inPeer).get()
|
(inPeer && !inPeer->isUser())
|
||||||
: Dialogs::Key());
|
? inPeer->owner().history(inPeer).get()
|
||||||
|
: Dialogs::Key());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue