Add WakeLock to dismiss ringing call screen when call is cancelled (#4478)

* Add `WakeLock` to dismiss ringing call screen when call is cancelled

We had already some checks in place to automatically cancel a ringing call notification/screen when the call was no longer active, but the `RoomInfo` updates weren't being processed because the app was 'paused'.

The partial wakelock should ensure these room info updates are handled.

* Add mutual exclusion to `ActiveCallManager` methods to improve thread safety
This commit is contained in:
Jorge Martin Espinosa 2025-04-02 11:51:39 +02:00 committed by GitHub
parent 1517e534a7
commit 2e191de343
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 152 additions and 48 deletions

View file

@ -118,7 +118,7 @@ class DefaultPushHandler @Inject constructor(
}
}
private fun handleRingingCallEvent(notifiableEvent: NotifiableRingingCallEvent) {
private suspend fun handleRingingCallEvent(notifiableEvent: NotifiableRingingCallEvent) {
Timber.i("## handleInternal() : Incoming call.")
elementCallEntryPoint.handleIncomingCall(
callType = CallType.RoomCall(notifiableEvent.sessionId, notifiableEvent.roomId),