Fix rendering notifications if event ID is duplicated (#5711)

This commit is contained in:
SpiritCroc
2025-11-10 21:54:09 +01:00
committed by GitHub
parent 4fa950b25e
commit 4074556b6f

View File

@@ -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)