Don't automatically dismiss phone calls if DnD is enabled

This commit is contained in:
Ali 2020-03-24 17:03:56 +04:00
parent 45a1732807
commit 9b66b96d87

View File

@ -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)")