mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Don't automatically dismiss phone calls if DnD is enabled
This commit is contained in:
parent
45a1732807
commit
9b66b96d87
@ -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)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user