Make sure we don't finish NotificationTapOpensTimeline until we've actually rendered the timeline event we need to focus on
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
568c1ae90d
commit
7a1dd24dbd
@@ -206,6 +206,9 @@ class TimelinePresenter(
|
||||
focusOnEvent(event.eventId, focusRequestState)
|
||||
}.start()
|
||||
is TimelineEvents.OnFocusEventRender -> {
|
||||
// If there was a pending 'notification tap opens timeline' transaction, finish it now we're focused in the required event
|
||||
analyticsService.finishLongRunningTransaction(NotificationTapOpensTimeline)
|
||||
|
||||
focusRequestState.value = focusRequestState.value.onFocusEventRender()
|
||||
}
|
||||
is TimelineEvents.ClearFocusRequestState -> {
|
||||
@@ -242,7 +245,6 @@ class TimelinePresenter(
|
||||
analyticsService.run {
|
||||
finishLongRunningTransaction(DisplayFirstTimelineItems)
|
||||
finishLongRunningTransaction(OpenRoom)
|
||||
finishLongRunningTransaction(NotificationTapOpensTimeline)
|
||||
}
|
||||
}
|
||||
.launchIn(this)
|
||||
|
||||
Reference in New Issue
Block a user