mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Search by hashtag inside groups.
This commit is contained in:
parent
25b5027dc7
commit
a7f4ac2797
1 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue