Skip to content

Commit 95207ee

Browse files
committed
Improve log messages and comment
1 parent 9585f59 commit 95207ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ActiveCallManager.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,15 @@ class DefaultActiveCallManager(
273273
val callType = activeCall.callType as CallType.RoomCall
274274
val ringingInfo = activeCall.callState as CallState.Ringing
275275
val client = matrixClientProvider.getOrRestore(callType.sessionId).getOrNull() ?: run {
276-
Timber.tag(tag).d("Couldn't find room for incoming call: $activeCall")
276+
Timber.tag(tag).d("Couldn't find session for incoming call: $activeCall")
277277
return@flatMapLatest flowOf()
278278
}
279279
val room = client.getRoom(callType.roomId) ?: run {
280280
Timber.tag(tag).d("Couldn't find room for incoming call: $activeCall")
281281
return@flatMapLatest flowOf()
282282
}
283283

284-
Timber.tag(tag).d("Found room for rining call: ${room.roomId}")
284+
Timber.tag(tag).d("Found room for ringing call: ${room.roomId}")
285285

286286
// If we have declined from another phone we want to stop ringing.
287287
room.subscribeToCallDecline(ringingInfo.notificationData.eventId)
@@ -293,11 +293,11 @@ class DefaultActiveCallManager(
293293
}
294294
}
295295
.onEach { decliner ->
296-
Timber.tag(tag).d("Call: $activeCall was declined by from another session")
297-
// decline
296+
Timber.tag(tag).d("Call: $activeCall was declined by user from another session")
297+
// Remove the active call and cancel the notification
298298
activeCall.value = null
299299
if (activeWakeLock?.isHeld == true) {
300-
Timber.tag(tag).d("Releasing partial wakelock after timeout")
300+
Timber.tag(tag).d("Releasing partial wakelock after call declined from another session")
301301
activeWakeLock.release()
302302
}
303303
cancelIncomingCallNotification()

0 commit comments

Comments
 (0)