diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-08-09 13:06:55 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-08-09 13:06:55 +0300 |
commit | c76e81a086aa66394b37d3bf36592328da09a298 (patch) | |
tree | 5438638de13f8873a8601ef46a7f0dd5bd6299e1 /patches | |
parent | 2024-08-05 (diff) |
2024-08-09
Diffstat (limited to 'patches')
-rw-r--r-- | patches/telegram-desktop-no-ads.patch | 45 | ||||
-rw-r--r-- | patches/vesktop-no-anime.patch | 17 |
2 files changed, 0 insertions, 62 deletions
diff --git a/patches/telegram-desktop-no-ads.patch b/patches/telegram-desktop-no-ads.patch deleted file mode 100644 index 2a88cbf..0000000 --- a/patches/telegram-desktop-no-ads.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git i/Telegram/SourceFiles/data/components/sponsored_messages.cpp w/Telegram/SourceFiles/data/components/sponsored_messages.cpp -index a60d7c3fd..070694b64 100644 ---- i/Telegram/SourceFiles/data/components/sponsored_messages.cpp -+++ w/Telegram/SourceFiles/data/components/sponsored_messages.cpp -@@ -185,39 +185,7 @@ bool SponsoredMessages::canHaveFor(not_null<History*> history) const { - } - - void SponsoredMessages::request(not_null<History*> history, Fn<void()> done) { -- if (!canHaveFor(history)) { -- return; -- } -- auto &request = _requests[history]; -- if (request.requestId || TooEarlyForRequest(request.lastReceived)) { -- return; -- } -- { -- const auto it = _data.find(history); -- if (it != end(_data)) { -- auto &list = it->second; -- // Don't rebuild currently displayed messages. -- const auto proj = [](const Entry &e) { -- return e.item != nullptr; -- }; -- if (ranges::any_of(list.entries, proj)) { -- return; -- } -- } -- } -- const auto channel = history->peer->asChannel(); -- Assert(channel != nullptr); -- request.requestId = _session->api().request( -- MTPchannels_GetSponsoredMessages( -- channel->inputChannel) -- ).done([=](const MTPmessages_sponsoredMessages &result) { -- parse(history, result); -- if (done) { -- done(); -- } -- }).fail([=] { -- _requests.remove(history); -- }).send(); -+ return; - } - - void SponsoredMessages::parse( diff --git a/patches/vesktop-no-anime.patch b/patches/vesktop-no-anime.patch deleted file mode 100644 index 5fd97ef..0000000 --- a/patches/vesktop-no-anime.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git i/static/views/splash.html w/static/views/splash.html -index 7cb571b..519c0f6 100644 ---- i/static/views/splash.html -+++ w/static/views/splash.html -@@ -30,12 +30,6 @@ - - <body> - <div class="wrapper"> -- <img -- draggable="false" -- src="../shiggy.gif" -- alt="shiggy" -- role="presentation" -- /> - <p>Loading Vesktop...</p> - </div> - </body> |