mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Merge pull request #4413 from element-hq/feature/bma/fixOpenMedia
Ensure that a click on a media open the correct media.
This commit is contained in:
+1
-4
@@ -78,10 +78,7 @@ class MediaViewerNode @AssistedInject constructor(
|
|||||||
}
|
}
|
||||||
when (timelineMode) {
|
when (timelineMode) {
|
||||||
null -> timelineMediaGalleryDataSource
|
null -> timelineMediaGalleryDataSource
|
||||||
Timeline.Mode.LIVE -> {
|
Timeline.Mode.LIVE,
|
||||||
// Even if the timelineMediaGalleryDataSource does not know the eventId, the SDK will create the timeline faster
|
|
||||||
timelineMediaGalleryDataSource
|
|
||||||
}
|
|
||||||
Timeline.Mode.FOCUSED_ON_EVENT -> {
|
Timeline.Mode.FOCUSED_ON_EVENT -> {
|
||||||
// Does timelineMediaGalleryDataSource knows the eventId?
|
// Does timelineMediaGalleryDataSource knows the eventId?
|
||||||
val lastData = timelineMediaGalleryDataSource.getLastData().dataOrNull()
|
val lastData = timelineMediaGalleryDataSource.getLastData().dataOrNull()
|
||||||
|
|||||||
Reference in New Issue
Block a user