summarylogtreecommitdiffstats
path: root/block-sponsored_messages.patch
blob: 437ed97f5118bc1a63035bcd65a6af273f3c12e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Telegram/SourceFiles/data/components/sponsored_messages.cpp b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
index d0e9bc5a0..452ed15b4 100644
--- a/Telegram/SourceFiles/data/components/sponsored_messages.cpp
+++ b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
@@ -181,7 +181,7 @@ void SponsoredMessages::inject(
 }
 
 bool SponsoredMessages::canHaveFor(not_null<History*> history) const {
-	return history->peer->isChannel();
+	return false;
 }
 
 void SponsoredMessages::request(not_null<History*> history, Fn<void()> done) {