Suggestions from CD3 revised call back publishers

This commit is contained in:
Christophe Deschamps
2023-09-25 21:31:15 +02:00
parent 3f0264edef
commit 933b6b46ea
5 changed files with 35651 additions and 236 deletions

View File

@@ -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 {