Fix rendering notifications if event ID is duplicated (#5711)
This commit is contained in:
parent
4fa950b25e
commit
4074556b6f
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class RustNotificationService(
|
||||||
}
|
}
|
||||||
val items = notificationClient.getNotifications(requests)
|
val items = notificationClient.getNotifications(requests)
|
||||||
buildMap {
|
buildMap {
|
||||||
val eventIds = requests.flatMap { it.eventIds }
|
val eventIds = requests.flatMap { it.eventIds }.distinct()
|
||||||
for (rawEventId in eventIds) {
|
for (rawEventId in eventIds) {
|
||||||
val roomId = RoomId(requests.find { it.eventIds.contains(rawEventId) }?.roomId!!)
|
val roomId = RoomId(requests.find { it.eventIds.contains(rawEventId) }?.roomId!!)
|
||||||
val eventId = EventId(rawEventId)
|
val eventId = EventId(rawEventId)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue