mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Delay seting up a "new" call session until after accepting the incoming call.
This commit is contained in:
committed by
Stefan Ceriu
parent
e76fabf18c
commit
4c1311c11b
@@ -141,7 +141,10 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe
|
|||||||
|
|
||||||
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
|
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
|
||||||
if let incomingCallRoomID {
|
if let incomingCallRoomID {
|
||||||
actionsSubject.send(.answerCall(roomID: incomingCallRoomID))
|
Task {
|
||||||
|
// Dispatch to next run loop so it doesn't conflict with `setupCallSession`
|
||||||
|
actionsSubject.send(.answerCall(roomID: incomingCallRoomID))
|
||||||
|
}
|
||||||
self.incomingCallRoomID = nil
|
self.incomingCallRoomID = nil
|
||||||
} else {
|
} else {
|
||||||
MXLog.error("Failed answering incoming call, missing room ID")
|
MXLog.error("Failed answering incoming call, missing room ID")
|
||||||
|
|||||||
Reference in New Issue
Block a user