Fix rendering notifications if event ID is duplicated (#5711)
This commit is contained in:
parent
8603d54778
commit
6416c79925
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue