Fix "Share" for attachment with caption

// FREEBIE
pull/1/head
Michael Kirk 7 years ago committed by Matthew Chen
parent 88d8eacc6e
commit e43d0b1b5a

@ -547,13 +547,8 @@ class MessageDetailViewController: OWSViewController, UIScrollViewDelegate, Medi
// MARK: - Actions
func shareButtonPressed() {
if let messageBody = messageBody {
UIPasteboard.general.string = messageBody
return
}
guard let attachmentStream = attachmentStream else {
Logger.error("\(TAG) Message has neither attachment nor message body.")
Logger.error("\(TAG) Share button should only be shown with attachment, but no attachment found.")
return
}
AttachmentSharing.showShareUI(forAttachment: attachmentStream)

Loading…
Cancel
Save