Adding distinctBy on event ids for polls

This commit is contained in:
Maxime NATUREL 2023-01-23 10:40:28 +01:00
parent 492b8a012d
commit 05c4de6c6c
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ internal class DefaultPollHistoryService @AssistedInject constructor(
return Transformations.map(eventsLiveData) { events -> return Transformations.map(eventsLiveData) { events ->
events.filter { it.root.getClearType() in EventType.POLL_START.values } events.filter { it.root.getClearType() in EventType.POLL_START.values }
.distinctBy { it.eventId }
} }
} }