summarylogtreecommitdiffstats
path: root/0002-Block-sponsored_messages.patch
blob: 4ccdd789f4e85faa69842f782cba93d64d24ff23 (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 1dc5b49..91cba9c 100644
--- a/Telegram/SourceFiles/data/data_sponsored_messages.cpp
+++ b/Telegram/SourceFiles/data/data_sponsored_messages.cpp
@@ -93,7 +93,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) {