Add mapping on FocusEventException.

Extract FocusRequestState to its own file and add preview.
This commit is contained in:
Benoit Marty 2024-04-26 16:08:08 +02:00 committed by Benoit Marty
parent d3d5081084
commit a4c6e6c281
10 changed files with 219 additions and 47 deletions

View file

@ -215,8 +215,8 @@ class FakeMatrixRoom(
override val syncUpdateFlow: StateFlow<Long> = MutableStateFlow(0L)
override suspend fun timelineFocusedOnEvent(eventId: EventId): Timeline {
return FakeTimeline()
override suspend fun timelineFocusedOnEvent(eventId: EventId): Result<Timeline> {
return Result.success(FakeTimeline())
}
override suspend fun subscribeToSync() = Unit