From f1c0ac0b9b63e2f3a858134c445e426dd3ed2827 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 11 Sep 2025 16:37:12 +0200 Subject: [PATCH] Improve log messages and comment --- .../features/call/impl/utils/ActiveCallManager.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ActiveCallManager.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ActiveCallManager.kt index 6ec35009f9..0895e6860b 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ActiveCallManager.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ActiveCallManager.kt @@ -273,7 +273,7 @@ class DefaultActiveCallManager( val callType = activeCall.callType as CallType.RoomCall val ringingInfo = activeCall.callState as CallState.Ringing val client = matrixClientProvider.getOrRestore(callType.sessionId).getOrNull() ?: run { - Timber.tag(tag).d("Couldn't find room for incoming call: $activeCall") + Timber.tag(tag).d("Couldn't find session for incoming call: $activeCall") return@flatMapLatest flowOf() } val room = client.getRoom(callType.roomId) ?: run { @@ -281,7 +281,7 @@ class DefaultActiveCallManager( return@flatMapLatest flowOf() } - Timber.tag(tag).d("Found room for rining call: ${room.roomId}") + Timber.tag(tag).d("Found room for ringing call: ${room.roomId}") // If we have declined from another phone we want to stop ringing. room.subscribeToCallDecline(ringingInfo.notificationData.eventId) @@ -293,11 +293,11 @@ class DefaultActiveCallManager( } } .onEach { decliner -> - Timber.tag(tag).d("Call: $activeCall was declined by from another session") - // decline + Timber.tag(tag).d("Call: $activeCall was declined by user from another session") + // Remove the active call and cancel the notification activeCall.value = null if (activeWakeLock?.isHeld == true) { - Timber.tag(tag).d("Releasing partial wakelock after timeout") + Timber.tag(tag).d("Releasing partial wakelock after call declined from another session") activeWakeLock.release() } cancelIncomingCallNotification()