summarylogtreecommitdiffstats
path: root/0002-Block-sponsored_messages.patch
diff options
context:
space:
mode:
authorxiota2023-11-01 04:17:32 -0700
committerxiota2023-11-01 04:30:59 -0700
commitfb8078b92f9373b7017f09194f86726e5d1108e9 (patch)
tree1cbf36ecfc6f0118c4ea94a206e6a54295a07282 /0002-Block-sponsored_messages.patch
parent8c55303185873550d48c4bb7c5a7690fcc0212d6 (diff)
downloadaur-kotatogram-desktop.tar.gz
1.4.9
Diffstat (limited to '0002-Block-sponsored_messages.patch')
-rw-r--r--0002-Block-sponsored_messages.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/0002-Block-sponsored_messages.patch b/0002-Block-sponsored_messages.patch
new file mode 100644
index 000000000000..4ccdd789f4e8
--- /dev/null
+++ b/0002-Block-sponsored_messages.patch
@@ -0,0 +1,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) {