File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -273,15 +273,15 @@ class DefaultActiveCallManager(
273
273
val callType = activeCall.callType as CallType .RoomCall
274
274
val ringingInfo = activeCall.callState as CallState .Ringing
275
275
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 " )
277
277
return @flatMapLatest flowOf()
278
278
}
279
279
val room = client.getRoom(callType.roomId) ? : run {
280
280
Timber .tag(tag).d(" Couldn't find room for incoming call: $activeCall " )
281
281
return @flatMapLatest flowOf()
282
282
}
283
283
284
- Timber .tag(tag).d(" Found room for rining call: ${room.roomId} " )
284
+ Timber .tag(tag).d(" Found room for ringing call: ${room.roomId} " )
285
285
286
286
// If we have declined from another phone we want to stop ringing.
287
287
room.subscribeToCallDecline(ringingInfo.notificationData.eventId)
@@ -293,11 +293,11 @@ class DefaultActiveCallManager(
293
293
}
294
294
}
295
295
.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
298
298
activeCall.value = null
299
299
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 " )
301
301
activeWakeLock.release()
302
302
}
303
303
cancelIncomingCallNotification()
You can’t perform that action at this time.
0 commit comments