You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/mediaviewer/impl/src/main/kotlin/io/element/android/libraries/mediaviewer/impl/viewer/MediaViewerNode.kt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -78,10 +78,7 @@ class MediaViewerNode @AssistedInject constructor(
78
78
}
79
79
when (timelineMode) {
80
80
null-> timelineMediaGalleryDataSource
81
-
Timeline.Mode.LIVE-> {
82
-
// Even if the timelineMediaGalleryDataSource does not know the eventId, the SDK will create the timeline faster
83
-
timelineMediaGalleryDataSource
84
-
}
81
+
Timeline.Mode.LIVE,
85
82
Timeline.Mode.FOCUSED_ON_EVENT-> {
86
83
// Does timelineMediaGalleryDataSource knows the eventId?
87
84
val lastData = timelineMediaGalleryDataSource.getLastData().dataOrNull()
0 commit comments