From e70a95cfa29ecba2760f0d3a2f738e9e27f0d39a Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:35:53 +0000 Subject: [PATCH] Add back missing send button when media captions are disabled. (#3561) --- .../View/MediaUploadPreviewScreen.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift b/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift index 807df69935..2b4e722abd 100644 --- a/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift +++ b/ElementX/Sources/Screens/MediaUploadPreviewScreen/View/MediaUploadPreviewScreen.swift @@ -76,6 +76,16 @@ struct MediaUploadPreviewScreen: View { // follow the dark colour scheme on devices running with dark mode disabled. .tint(.compound.textActionPrimary) } + + if !context.viewState.showMediaCaptionComposer { + ToolbarItem(placement: .confirmationAction) { + Button { context.send(viewAction: .send) } label: { + Text(L10n.actionSend) + } + // Same fix as above (this button is temporary anyway). + .tint(.compound.textActionPrimary) + } + } } }