focusOnLive() is not suspendable.

This commit is contained in:
Benoit Marty 2024-04-29 12:15:14 +02:00
parent f0b9029607
commit a5eb3f8f91

View file

@ -158,12 +158,10 @@ class TimelinePresenter @AssistedInject constructor(
focusRequestState.value = FocusRequestState.None focusRequestState.value = FocusRequestState.None
} }
is TimelineEvents.JumpToLive -> { is TimelineEvents.JumpToLive -> {
localScope.launch {
timelineController.focusOnLive() timelineController.focusOnLive()
} }
} }
} }
}
LaunchedEffect(timelineItems.size) { LaunchedEffect(timelineItems.size) {
computeNewItemState(timelineItems, prevMostRecentItemId, newEventState) computeNewItemState(timelineItems, prevMostRecentItemId, newEventState)