mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Delay seting up a "new" call session until after accepting the incoming call.
This commit is contained in:
parent
e76fabf18c
commit
4c1311c11b
@ -141,7 +141,10 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe
|
||||
|
||||
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
|
||||
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
|
||||
} else {
|
||||
MXLog.error("Failed answering incoming call, missing room ID")
|
||||
|
Loading…
x
Reference in New Issue
Block a user