mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Support sending gallery messages behind a feature flag
Adds the ability to send a gallery message (multiple attachments in one message) via the media upload preview, wired through the timeline controller/proxy to the SDK's sendGallery. Gated by a `galleryEnabled` developer flag (default off), matching Element X Android — with the flag off, attachments are sent as individual messages as before. Extends the community PR #5601, rebased onto develop. Tracking: element-hq/element-meta#3201 Co-authored-by: svetoslav.mitov <svetoslav.mitov@sportinno.com>
This commit is contained in:
@@ -416,6 +416,11 @@ final nonisolated class AppSettings: @unchecked Sendable {
|
||||
@UserPreference(defaultValue: false)
|
||||
var linkPreviewsEnabled: Bool
|
||||
|
||||
/// Enables *sending* gallery messages (multiple media in a single message). Received galleries
|
||||
/// are always rendered regardless of this flag, matching Element X Android.
|
||||
@UserPreference(defaultValue: false)
|
||||
var galleryEnabled: Bool
|
||||
|
||||
@UserPreference(defaultValue: false)
|
||||
var jumpToReadMarkerEnabled: Bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user