diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/notification/RustNotificationService.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/notification/RustNotificationService.kt index c34ad62d26..59d95af05b 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/notification/RustNotificationService.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/notification/RustNotificationService.kt @@ -45,7 +45,7 @@ class RustNotificationService( } val items = notificationClient.getNotifications(requests) buildMap { - val eventIds = requests.flatMap { it.eventIds } + val eventIds = requests.flatMap { it.eventIds }.distinct() for (rawEventId in eventIds) { val roomId = RoomId(requests.find { it.eventIds.contains(rawEventId) }?.roomId!!) val eventId = EventId(rawEventId)