Fix quality issue

This commit is contained in:
Benoit Marty 2026-02-12 18:17:13 +01:00
parent c95bbb6d07
commit 44b13ef82b

View file

@ -74,6 +74,7 @@ interface ActiveCallManager {
/** /**
* Called to hang up the active call. It will hang up the call and remove any existing UI and the active call. * Called to hang up the active call. It will hang up the call and remove any existing UI and the active call.
* @param callType The type of call that the user hangs up, either an external url one or a room one. * @param callType The type of call that the user hangs up, either an external url one or a room one.
* @param notificationData The data for the incoming call notification.
*/ */
suspend fun hangUpCall( suspend fun hangUpCall(
callType: CallType, callType: CallType,
@ -204,15 +205,13 @@ class DefaultActiveCallManager(
val currentActiveCall = activeCall.value ?: run { val currentActiveCall = activeCall.value ?: run {
// activeCall.value can be null if the application has been killed while the call was ringing // activeCall.value can be null if the application has been killed while the call was ringing
// Build a currentActiveCall with the provided parameters. // Build a currentActiveCall with the provided parameters.
if (notificationData != null) { notificationData?.let {
ActiveCall( ActiveCall(
callType = callType, callType = callType,
callState = CallState.Ringing( callState = CallState.Ringing(
notificationData = notificationData, notificationData = notificationData,
) )
) )
} else {
null
} }
} ?: run { } ?: run {
Timber.tag(tag).w("No active call, ignoring hang up") Timber.tag(tag).w("No active call, ignoring hang up")