2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Fix of search by hashtag

This commit is contained in:
RadRussianRus
2019-10-19 05:04:59 +03:00
parent cc52f0fdd6
commit 8f025e1d74

View File

@@ -152,6 +152,13 @@ void activateBotCommand(
} }
void searchByHashtag(const QString &tag, PeerData *inPeer) { 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()) { if (const auto m = App::main()) {
Ui::hideSettingsAndLayer(); Ui::hideSettingsAndLayer();
Core::App().hideMediaView(); Core::App().hideMediaView();