mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 12:54:35 +00:00
Fix rendering notifications if event ID is duplicated (#5711)
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user