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:
parent
c6e0686dec
commit
f265a47243
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue