mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Adding distinctBy on event ids for polls
This commit is contained in:
parent
492b8a012d
commit
05c4de6c6c
1 changed files with 1 additions and 0 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue