mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54: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()) {
|
||||
Ui::hideSettingsAndLayer();
|
||||
Core::App().hideMediaView();
|
||||
if (inPeer && (!inPeer->isChannel() || inPeer->isMegagroup())) {
|
||||
inPeer = nullptr;
|
||||
}
|
||||
m->searchMessages(
|
||||
tag + ' ',
|
||||
(inPeer
|
||||
(inPeer && !inPeer->isUser())
|
||||
? inPeer->owner().history(inPeer).get()
|
||||
: Dialogs::Key()));
|
||||
: Dialogs::Key());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue