Improve code clarity

This commit is contained in:
Benoit Marty 2021-04-07 12:39:36 +02:00
parent c459c4f90c
commit 2495fa49f3

View file

@ -604,12 +604,14 @@ internal class DefaultTimeline(
return offsetResults.size return offsetResults.size
} }
private fun buildTimelineEvent(eventEntity: TimelineEventEntity) = timelineEventMapper.map( private fun buildTimelineEvent(eventEntity: TimelineEventEntity): TimelineEvent {
return timelineEventMapper.map(
timelineEventEntity = eventEntity, timelineEventEntity = eventEntity,
buildReadReceipts = settings.buildReadReceipts buildReadReceipts = settings.buildReadReceipts
).let { ).let { timelineEvent ->
// eventually enhance with ui echo? // eventually enhance with ui echo?
(uiEchoManager.decorateEventWithReactionUiEcho(it) ?: it) uiEchoManager.decorateEventWithReactionUiEcho(timelineEvent) ?: timelineEvent
}
} }
/** /**