Skip to content

Commit 5921203

Browse files
committed
Ensure that a click on a media open the correct media.
1 parent 6876219 commit 5921203

File tree

1 file changed

+1
-4
lines changed
  • libraries/mediaviewer/impl/src/main/kotlin/io/element/android/libraries/mediaviewer/impl/viewer

1 file changed

+1
-4
lines changed

libraries/mediaviewer/impl/src/main/kotlin/io/element/android/libraries/mediaviewer/impl/viewer/MediaViewerNode.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ class MediaViewerNode @AssistedInject constructor(
7878
}
7979
when (timelineMode) {
8080
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,
8582
Timeline.Mode.FOCUSED_ON_EVENT -> {
8683
// Does timelineMediaGalleryDataSource knows the eventId?
8784
val lastData = timelineMediaGalleryDataSource.getLastData().dataOrNull()

0 commit comments

Comments
 (0)