#7761 Fixed case when event info is absent
This commit is contained in:
parent
596ca511d2
commit
74a0b180d7
|
@ -35,7 +35,7 @@ class NotificationFactory @Inject constructor(
|
|||
eventId = events.firstOrNull()?.event?.eventId.orEmpty(),
|
||||
roomName = events.firstOrNull()?.event?.roomName.orEmpty(),
|
||||
notification = notificationUtils.buildIncomingJitsiCallNotification(
|
||||
callId = events.firstOrNull()?.event?.eventId.orEmpty(),
|
||||
callId = events.firstOrNull()?.event?.eventId.orEmpty().ifEmpty { roomId },
|
||||
signalingRoomId = roomId,
|
||||
otherUserId = events.firstOrNull()?.event?.matrixID.orEmpty(),
|
||||
isIncomingCall = true,
|
||||
|
|
|
@ -76,8 +76,9 @@ class NotificationRenderer @Inject constructor(
|
|||
when (wrapper) {
|
||||
is JitsiNotification.IncomingCall -> {
|
||||
Timber.d("Updating jitsi call notification ${wrapper.roomId} for room ${wrapper.roomName}")
|
||||
if (wrapper.eventId.isNotEmpty()) {
|
||||
notificationDisplayer.showNotificationMessage(wrapper.eventId, JITSI_CALL_NOTIFICATION_ID, wrapper.notification)
|
||||
if (wrapper.eventId.isNotEmpty() || wrapper.roomId.isNotEmpty()) {
|
||||
val tag = wrapper.eventId.ifEmpty { wrapper.roomId }
|
||||
notificationDisplayer.showNotificationMessage(tag, JITSI_CALL_NOTIFICATION_ID, wrapper.notification)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue