mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:05:28 +00:00
Open in SingleMedia mode when coming from the timeline
This commit is contained in:
committed by
Benoit Marty
parent
7df65b0350
commit
ca5c06f20b
+3
-3
@@ -53,10 +53,10 @@ class MediaViewerNode @AssistedInject constructor(
|
|||||||
private val presenter = presenterFactory.create(
|
private val presenter = presenterFactory.create(
|
||||||
inputs = inputs,
|
inputs = inputs,
|
||||||
navigator = this,
|
navigator = this,
|
||||||
mediaGalleryDataSource = if (inputs.eventId != null) {
|
mediaGalleryDataSource = if (inputs.mode == MediaViewerEntryPoint.MediaViewerMode.SingleMedia) {
|
||||||
timelineMediaGalleryDataSource
|
|
||||||
} else {
|
|
||||||
SingleMediaGalleryDataSource.createFrom(inputs)
|
SingleMediaGalleryDataSource.createFrom(inputs)
|
||||||
|
} else {
|
||||||
|
timelineMediaGalleryDataSource
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user