Files
nixos/flake/lib/buildNixpkgsConfig/telegram.patch

13 lines
554 B
Diff

diff --git a/Telegram/SourceFiles/data/components/sponsored_messages.cpp b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
index d2746ad9..f46b51fb 100644
--- a/Telegram/SourceFiles/data/components/sponsored_messages.cpp
+++ b/Telegram/SourceFiles/data/components/sponsored_messages.cpp
@@ -195,6 +195,7 @@ void SponsoredMessages::inject(
}
bool SponsoredMessages::canHaveFor(not_null<History*> history) const {
+ return false;
if (history->peer->isChannel()) {
return true;
} else if (const auto user = history->peer->asUser()) {