diff --git a/Telegram/SourceFiles/facades.cpp b/Telegram/SourceFiles/facades.cpp index 631cd09eb..cc940360d 100644 --- a/Telegram/SourceFiles/facades.cpp +++ b/Telegram/SourceFiles/facades.cpp @@ -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()); } }