1
0
mirror of https://github.com/vector-im/element-android.git synced 2025-07-29 19:41:14 +03:00

Rename getTimeLine to getTimeline to align naming. Also create TimelineEventDataSource.

This commit is contained in:
ganfra
2022-02-23 18:00:31 +01:00
parent 924a4f8c94
commit fb2ed9a7ac
18 changed files with 113 additions and 80 deletions

View File

@ -58,9 +58,9 @@ class FlowRoom(private val room: Room) {
}
fun liveTimelineEvent(eventId: String): Flow<Optional<TimelineEvent>> {
return room.getTimeLineEventLive(eventId).asFlow()
return room.getTimelineEventLive(eventId).asFlow()
.startWith(room.coroutineDispatchers.io) {
room.getTimeLineEvent(eventId).toOptional()
room.getTimelineEvent(eventId).toOptional()
}
}