diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix index bbfb477acf5d..a70a54df2833 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix @@ -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 '' diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/scheme.patch b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/scheme.patch deleted file mode 100644 index 58aaa8a7fcb5..000000000000 --- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/scheme.patch +++ /dev/null @@ -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(); }); - } - } -