Adding distinctBy on event ids for polls
This commit is contained in:
parent
492b8a012d
commit
05c4de6c6c
|
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue