From 137bfdfda90da3ef493c3889a8468ffde96a75f5 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 29 Apr 2024 12:15:14 +0200 Subject: [PATCH] `focusOnLive()` is not suspendable. --- .../features/messages/impl/timeline/TimelinePresenter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt index 61b2add5cb..d6a02959c0 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt @@ -158,9 +158,7 @@ class TimelinePresenter @AssistedInject constructor( focusRequestState.value = FocusRequestState.None } is TimelineEvents.JumpToLive -> { - localScope.launch { - timelineController.focusOnLive() - } + timelineController.focusOnLive() } } }