From 8f025e1d74e7126fa35c69d6a8a95b50c3e37ee0 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sat, 19 Oct 2019 05:04:59 +0300 Subject: [PATCH] Fix of search by hashtag --- Telegram/SourceFiles/facades.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Telegram/SourceFiles/facades.cpp b/Telegram/SourceFiles/facades.cpp index 2bdbdec70..2c53b156c 100644 --- a/Telegram/SourceFiles/facades.cpp +++ b/Telegram/SourceFiles/facades.cpp @@ -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();