|
|
|
@ -42,12 +42,11 @@ class NotificationRenderer @Inject constructor(
@@ -42,12 +42,11 @@ class NotificationRenderer @Inject constructor(
|
|
|
|
|
imageLoader: ImageLoader, |
|
|
|
|
) { |
|
|
|
|
val groupedEvents = eventsToProcess.groupByType() |
|
|
|
|
with(notificationDataFactory) { |
|
|
|
|
val roomNotifications = toNotifications(groupedEvents.roomEvents, currentUser, imageLoader) |
|
|
|
|
val invitationNotifications = toNotifications(groupedEvents.invitationEvents) |
|
|
|
|
val simpleNotifications = toNotifications(groupedEvents.simpleEvents) |
|
|
|
|
val fallbackNotifications = toNotifications(groupedEvents.fallbackEvents) |
|
|
|
|
val summaryNotification = createSummaryNotification( |
|
|
|
|
val roomNotifications = notificationDataFactory.toNotifications(groupedEvents.roomEvents, currentUser, imageLoader) |
|
|
|
|
val invitationNotifications = notificationDataFactory.toNotifications(groupedEvents.invitationEvents) |
|
|
|
|
val simpleNotifications = notificationDataFactory.toNotifications(groupedEvents.simpleEvents) |
|
|
|
|
val fallbackNotifications = notificationDataFactory.toNotifications(groupedEvents.fallbackEvents) |
|
|
|
|
val summaryNotification = notificationDataFactory.createSummaryNotification( |
|
|
|
|
currentUser = currentUser, |
|
|
|
|
roomNotifications = roomNotifications, |
|
|
|
|
invitationNotifications = invitationNotifications, |
|
|
|
@ -115,7 +114,6 @@ class NotificationRenderer @Inject constructor(
@@ -115,7 +114,6 @@ class NotificationRenderer @Inject constructor(
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun List<NotifiableEvent>.groupByType(): GroupedNotificationEvents { |
|
|
|
|
val roomEvents: MutableList<NotifiableMessageEvent> = mutableListOf() |
|
|
|
|