mirror of https://github.com/procxx/kepka.git
Search by hashtag inside groups.
This commit is contained in:
parent
25b5027dc7
commit
a7f4ac2797
|
@ -154,14 +154,11 @@ void searchByHashtag(const QString &tag, PeerData *inPeer) {
|
||||||
if (const auto m = App::main()) {
|
if (const auto m = App::main()) {
|
||||||
Ui::hideSettingsAndLayer();
|
Ui::hideSettingsAndLayer();
|
||||||
Core::App().hideMediaView();
|
Core::App().hideMediaView();
|
||||||
if (inPeer && (!inPeer->isChannel() || inPeer->isMegagroup())) {
|
|
||||||
inPeer = nullptr;
|
|
||||||
}
|
|
||||||
m->searchMessages(
|
m->searchMessages(
|
||||||
tag + ' ',
|
tag + ' ',
|
||||||
(inPeer
|
(inPeer && !inPeer->isUser())
|
||||||
? inPeer->owner().history(inPeer).get()
|
? inPeer->owner().history(inPeer).get()
|
||||||
: Dialogs::Key()));
|
: Dialogs::Key());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue