From e43d0b1b5a49a53677a18852bdb13c6e45bfc650 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 22 Feb 2018 10:19:24 -0500 Subject: [PATCH] Fix "Share" for attachment with caption // FREEBIE --- .../src/ViewControllers/MessageDetailViewController.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Signal/src/ViewControllers/MessageDetailViewController.swift b/Signal/src/ViewControllers/MessageDetailViewController.swift index 33d9a5359..7afc5b9ca 100644 --- a/Signal/src/ViewControllers/MessageDetailViewController.swift +++ b/Signal/src/ViewControllers/MessageDetailViewController.swift @@ -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)