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

View file

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