#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(),
|
eventId = events.firstOrNull()?.event?.eventId.orEmpty(),
|
||||||
roomName = events.firstOrNull()?.event?.roomName.orEmpty(),
|
roomName = events.firstOrNull()?.event?.roomName.orEmpty(),
|
||||||
notification = notificationUtils.buildIncomingJitsiCallNotification(
|
notification = notificationUtils.buildIncomingJitsiCallNotification(
|
||||||
callId = events.firstOrNull()?.event?.eventId.orEmpty(),
|
callId = events.firstOrNull()?.event?.eventId.orEmpty().ifEmpty { roomId },
|
||||||
signalingRoomId = roomId,
|
signalingRoomId = roomId,
|
||||||
otherUserId = events.firstOrNull()?.event?.matrixID.orEmpty(),
|
otherUserId = events.firstOrNull()?.event?.matrixID.orEmpty(),
|
||||||
isIncomingCall = true,
|
isIncomingCall = true,
|
||||||
|
|
|
@ -76,8 +76,9 @@ class NotificationRenderer @Inject constructor(
|
||||||
when (wrapper) {
|
when (wrapper) {
|
||||||
is JitsiNotification.IncomingCall -> {
|
is JitsiNotification.IncomingCall -> {
|
||||||
Timber.d("Updating jitsi call notification ${wrapper.roomId} for room ${wrapper.roomName}")
|
Timber.d("Updating jitsi call notification ${wrapper.roomId} for room ${wrapper.roomName}")
|
||||||
if (wrapper.eventId.isNotEmpty()) {
|
if (wrapper.eventId.isNotEmpty() || wrapper.roomId.isNotEmpty()) {
|
||||||
notificationDisplayer.showNotificationMessage(wrapper.eventId, JITSI_CALL_NOTIFICATION_ID, wrapper.notification)
|
val tag = wrapper.eventId.ifEmpty { wrapper.roomId }
|
||||||
|
notificationDisplayer.showNotificationMessage(tag, JITSI_CALL_NOTIFICATION_ID, wrapper.notification)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue