Add back missing send button when media captions are disabled. (#3561)

This commit is contained in:
Doug 2024-11-27 11:35:53 +00:00 committed by GitHub
parent be8c1477c0
commit e70a95cfa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,6 +76,16 @@ struct MediaUploadPreviewScreen: View {
// follow the dark colour scheme on devices running with dark mode disabled. // follow the dark colour scheme on devices running with dark mode disabled.
.tint(.compound.textActionPrimary) .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)
}
}
} }
} }