From 9b66b96d87d50f6ffef9734786b4030a4e204287 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 24 Mar 2020 17:03:56 +0400 Subject: [PATCH] Don't automatically dismiss phone calls if DnD is enabled --- submodules/TelegramCallsUI/Sources/PresentationCall.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCallsUI/Sources/PresentationCall.swift b/submodules/TelegramCallsUI/Sources/PresentationCall.swift index 5fcfaefa4a..919d0fd189 100644 --- a/submodules/TelegramCallsUI/Sources/PresentationCall.swift +++ b/submodules/TelegramCallsUI/Sources/PresentationCall.swift @@ -418,9 +418,9 @@ public final class PresentationCallImpl: PresentationCall { if error.domain == "com.apple.CallKit.error.incomingcall" && (error.code == -3 || error.code == 3) { Logger.shared.log("PresentationCall", "reportIncomingCall device in DND mode") Queue.mainQueue().async { - if let strongSelf = self { + /*if let strongSelf = self { strongSelf.callSessionManager.drop(internalId: strongSelf.internalId, reason: .busy, debugLog: .single(nil)) - } + }*/ } } else { Logger.shared.log("PresentationCall", "reportIncomingCall error \(error)")