Suggestions from CD3 revised call back publishers
This commit is contained in:
@@ -69,7 +69,7 @@ extension CallKitProviderDelegate: CXProviderDelegate {
|
||||
if (self.tutorialContext.mCall?.state != .End && self.tutorialContext.mCall?.state != .Released) {
|
||||
try self.tutorialContext.mCall?.terminate()
|
||||
}
|
||||
LinphoneAsyncHelper.postOnMainQueue {
|
||||
DispatchQueue.main.async {
|
||||
self.tutorialContext.isCallRunning = false
|
||||
self.tutorialContext.isCallIncoming = false
|
||||
}
|
||||
@@ -89,7 +89,7 @@ extension CallKitProviderDelegate: CXProviderDelegate {
|
||||
// which is usually the case in an incoming call scenario.
|
||||
core?.configureAudioSession();
|
||||
try self.tutorialContext.mCall?.accept()
|
||||
LinphoneAsyncHelper.postOnMainQueue {
|
||||
DispatchQueue.main.async {
|
||||
self.tutorialContext.isCallRunning = true
|
||||
}
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user