telegram-desktop: remove scheme.patch

It works just fine without it
This commit is contained in:
Ilya Fedin
2024-11-01 19:20:18 +04:00
parent 1ba6efe787
commit f4687b2ebf
2 changed files with 0 additions and 16 deletions
@@ -73,10 +73,6 @@ stdenv.mkDerivation (finalAttrs: {
patches = [
./macos.patch
# the generated .desktop files contains references to unwrapped tdesktop, breaking scheme handling
# and the scheme handler is already registered in the packaged .desktop file, rendering this unnecessary
# see https://github.com/NixOS/nixpkgs/issues/218370
./scheme.patch
];
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
@@ -1,12 +0,0 @@
diff --git a/Telegram/SourceFiles/core/application.cpp b/Telegram/SourceFiles/core/application.cpp
index e3e0de6c6..d5851bd6e 100644
--- a/Telegram/SourceFiles/core/application.cpp
+++ b/Telegram/SourceFiles/core/application.cpp
@@ -421,7 +421,6 @@ void Application::run() {
void Application::autoRegisterUrlScheme() {
if (!OptionSkipUrlSchemeRegister.value()) {
- InvokeQueued(this, [] { RegisterUrlScheme(); });
}
}