summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-11-13 10:40:41 +0300
committerAzat Bahawi <azat@bahawi.net>2023-11-13 10:40:41 +0300
commita3f9fde2a2d43dd477f402bd4b8df2a1cd29ca43 (patch)
treecbd0c2457daa6865eb33b5389ec40309e60868a9 /patches
parent011c1632f3762e1bc1ecfdee9d9f3b3f44be74e5 (diff)
2023-11-13
Diffstat (limited to 'patches')
-rw-r--r--patches/alejandra-no-noise.patch13
-rw-r--r--patches/prismlauncher-allow-offline-accounts.patch24
-rw-r--r--patches/telegram-desktop-no-ads.patch45
-rw-r--r--patches/vesktop-no-anime.patch17
4 files changed, 99 insertions, 0 deletions
diff --git a/patches/alejandra-no-noise.patch b/patches/alejandra-no-noise.patch
new file mode 100644
index 0000000..2675643
--- /dev/null
+++ b/patches/alejandra-no-noise.patch
@@ -0,0 +1,13 @@
+diff --git i/src/alejandra_cli/src/verbosity.rs w/src/alejandra_cli/src/verbosity.rs
+index 9c739a7..c99f1f9 100644
+--- i/src/alejandra_cli/src/verbosity.rs
++++ w/src/alejandra_cli/src/verbosity.rs
+@@ -7,7 +7,7 @@ pub(crate) enum Verbosity {
+
+ impl Verbosity {
+ pub(crate) fn allows_info(&self) -> bool {
+- matches!(self, Verbosity::Everything)
++ return false;
+ }
+
+ pub(crate) fn allows_errors(&self) -> bool {
diff --git a/patches/prismlauncher-allow-offline-accounts.patch b/patches/prismlauncher-allow-offline-accounts.patch
new file mode 100644
index 0000000..c245066
--- /dev/null
+++ b/patches/prismlauncher-allow-offline-accounts.patch
@@ -0,0 +1,24 @@
+diff --git i/launcher/ui/pages/global/AccountListPage.cpp w/launcher/ui/pages/global/AccountListPage.cpp
+index 278f45c4..b65cbbfb 100644
+--- i/launcher/ui/pages/global/AccountListPage.cpp
++++ w/launcher/ui/pages/global/AccountListPage.cpp
+@@ -188,19 +188,6 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
+
+ void AccountListPage::on_actionAddOffline_triggered()
+ {
+- if (!m_accounts->anyAccountIsValid()) {
+- QMessageBox::warning(
+- this,
+- tr("Error"),
+- tr(
+- "You must add a Microsoft or Mojang account that owns Minecraft before you can add an offline account."
+- "<br><br>"
+- "If you have lost your account you can contact Microsoft for support."
+- )
+- );
+- return;
+- }
+-
+ MinecraftAccountPtr account = OfflineLoginDialog::newAccount(
+ this,
+ tr("Please enter your desired username to add your offline account.")
diff --git a/patches/telegram-desktop-no-ads.patch b/patches/telegram-desktop-no-ads.patch
new file mode 100644
index 0000000..d066066
--- /dev/null
+++ b/patches/telegram-desktop-no-ads.patch
@@ -0,0 +1,45 @@
+diff --git i/Telegram/SourceFiles/data/data_sponsored_messages.cpp w/Telegram/SourceFiles/data/data_sponsored_messages.cpp
+index fa21af469..263ea3e61 100644
+--- i/Telegram/SourceFiles/data/data_sponsored_messages.cpp
++++ w/Telegram/SourceFiles/data/data_sponsored_messages.cpp
+@@ -179,39 +179,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
new file mode 100644
index 0000000..5fd97ef
--- /dev/null
+++ b/patches/vesktop-no-anime.patch
@@ -0,0 +1,17 @@
+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>