Merge branch 'mkirk/fix-share-with-caption'

pull/1/head
Matthew Chen 7 years ago
commit ba31059e43

@ -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