Fix sharing gallery from pinned event timeline.

This commit is contained in:
Benoit Marty
2026-06-26 17:36:27 +02:00
parent a7e6d8af6e
commit b62242cdd2
9 changed files with 56 additions and 24 deletions
@@ -48,6 +48,7 @@ interface MediaViewerEntryPoint : FeatureEntryPoint {
val eventId: EventId?,
val galleryInfo: GalleryInfo,
val galleryItems: List<GalleryItemData>,
val fromPinnedMessages: Boolean,
) : Params
data class Avatar(
@@ -59,7 +60,7 @@ interface MediaViewerEntryPoint : FeatureEntryPoint {
sealed interface MediaViewerMode : Parcelable {
@Parcelize
data object EventGallery : MediaViewerMode
data class EventGallery(val fromPinnedMessages: Boolean) : MediaViewerMode
@Parcelize
data class TimelineImagesAndVideos(val timelineMode: Timeline.Mode) : MediaViewerMode