Fix / Day separator flickering in timeline
Sending events were not filtered, so sending events like reactions would make the day separator appear
This commit is contained in:
parent
17a4a86ad1
commit
b92cc524b6
|
@ -125,7 +125,7 @@ internal class DefaultTimeline(
|
|||
}
|
||||
|
||||
var hasChanged = false
|
||||
changeSet.changes.forEach {index ->
|
||||
changeSet.changes.forEach { index ->
|
||||
val eventEntity = results[index]
|
||||
eventEntity?.eventId?.let { eventId ->
|
||||
builtEventsIdMap[eventId]?.let { builtIndex ->
|
||||
|
@ -289,7 +289,9 @@ internal class DefaultTimeline(
|
|||
private fun buildSendingEvents(): List<TimelineEvent> {
|
||||
val sendingEvents = ArrayList<TimelineEvent>()
|
||||
if (hasReachedEnd(Timeline.Direction.FORWARDS)) {
|
||||
roomEntity?.sendingTimelineEvents?.forEach {
|
||||
roomEntity?.sendingTimelineEvents
|
||||
?.filter { allowedTypes?.contains(it.type) ?: false }
|
||||
?.forEach {
|
||||
val timelineEvent = timelineEventFactory.create(it)
|
||||
sendingEvents.add(timelineEvent)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue