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)