mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Improve code clarity
This commit is contained in:
parent
c459c4f90c
commit
2495fa49f3
1 changed files with 12 additions and 10 deletions
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue