Improve UX when answering EL-Call through the notification (#2965)

This commit is contained in:
Mauro
2024-06-24 18:51:43 +02:00
committed by GitHub
parent 3465ea4cc1
commit fa22b98b3f
2 changed files with 21 additions and 10 deletions
@@ -145,15 +145,17 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
registerBackgroundAppRefresh()
elementCallService.actions.sink { [weak self] action in
switch action {
case .answerCall(let roomID):
self?.handleAppRoute(.call(roomID: roomID))
case .declineCall:
break
elementCallService.actions
.receive(on: DispatchQueue.main)
.sink { [weak self] action in
switch action {
case .answerCall(let roomID):
self?.handleAppRoute(.call(roomID: roomID))
case .declineCall:
break
}
}
}
.store(in: &cancellables)
.store(in: &cancellables)
}
func start() {