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();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (const auto m = App::main()) {
|
||||
Ui::hideSettingsAndLayer();
|
||||
Core::App().hideMediaView();
|
||||
m->searchMessages(
|
||||
tag + ' ',
|
||||
(inPeer && !inPeer->isUser())
|
||||
? inPeer->owner().history(inPeer).get()
|
||||
: Dialogs::Key());
|
||||
if (const auto m = window->mainWidget()) {
|
||||
m->searchMessages(
|
||||
tag + ' ',
|
||||
(inPeer && !inPeer->isUser())
|
||||
? inPeer->owner().history(inPeer).get()
|
||||
: Dialogs::Key());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue