Fix of search by hashtag
This commit is contained in:
parent
cc52f0fdd6
commit
8f025e1d74
1 changed files with 7 additions and 0 deletions
|
|
@ -152,6 +152,13 @@ void activateBotCommand(
|
|||
}
|
||||
|
||||
void searchByHashtag(const QString &tag, PeerData *inPeer) {
|
||||
if (const auto window = App::wnd()) {
|
||||
if (const auto controller = window->sessionController()) {
|
||||
if (controller->openedFolder().current()) {
|
||||
controller->closeFolder();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (const auto m = App::main()) {
|
||||
Ui::hideSettingsAndLayer();
|
||||
Core::App().hideMediaView();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue