Skip to content

Commit a6b8e5c

Browse files
authored
Merge pull request #4413 from element-hq/feature/bma/fixOpenMedia
Ensure that a click on a media open the correct media.
2 parents e93924e + 5921203 commit a6b8e5c

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)