summarylogtreecommitdiffstats
path: root/block-sponsored_messages.patch
blob: 8452a9a0cccdba5935615fe6f4cdcfb3f1b2dbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Telegram/SourceFiles/data/data_sponsored_messages.cpp b/Telegram/SourceFiles/data/data_sponsored_messages.cpp
index c90dd3c53..f8e0a096d 100644
--- a/Telegram/SourceFiles/data/data_sponsored_messages.cpp
+++ b/Telegram/SourceFiles/data/data_sponsored_messages.cpp
@@ -82,7 +82,7 @@ bool SponsoredMessages::append(not_null<History*> history) {
 }
 
 bool SponsoredMessages::canHaveFor(not_null<History*> history) const {
-	return history->peer->isChannel();
+	return false;
 }
 
 void SponsoredMessages::request(not_null<History*> history) {