mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Begin a background task when receiving a call in order to get state updates for longer.
This commit is contained in:
@@ -170,11 +170,13 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe
|
||||
// https://stackoverflow.com/a/41230020/730924
|
||||
update.remoteHandle = .init(type: .generic, value: roomID)
|
||||
|
||||
callProvider.reportNewIncomingCall(with: callID.callKitID, update: update) { error in
|
||||
callProvider.reportNewIncomingCall(with: callID.callKitID, update: update) { [weak self] error in
|
||||
if let error {
|
||||
MXLog.error("Failed reporting new incoming call with error: \(error)")
|
||||
}
|
||||
|
||||
self?.actionsSubject.send(.receivedIncomingCallRequest)
|
||||
|
||||
completion()
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
import Combine
|
||||
|
||||
enum ElementCallServiceAction {
|
||||
case receivedIncomingCallRequest
|
||||
case startCall(roomID: String)
|
||||
case endCall(roomID: String)
|
||||
case setAudioEnabled(_ enabled: Bool, roomID: String)
|
||||
|
||||
Reference in New Issue
Block a user