Fix rendering notifications if event ID is duplicated (#5711)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user