From a7f4ac27978124d3781775a002f8aecf2658b417 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 31 Jan 2019 15:51:19 +0300 Subject: [PATCH] Search by hashtag inside groups. --- Telegram/SourceFiles/facades.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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()); } }