Improve code clarity

This commit is contained in:
Benoit Marty 2021-04-07 12:39:36 +02:00
parent c459c4f90c
commit 2495fa49f3
1 changed files with 12 additions and 10 deletions

View File

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