Skip to content

Commit

Permalink
Add back missing send button when media captions are disabled. (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored Nov 27, 2024
1 parent be8c147 commit e70a95c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}

Expand Down

0 comments on commit e70a95c

Please sign in to comment.