Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent 3d757b492a
commit a51182321c

@ -1464,10 +1464,6 @@ const UIDataDetectorTypes kOWSAllowedDataDetectorTypes
}
if (self.viewItem.linkPreview) {
// Treat this as a "quoted reply" gesture if:
//
// * There is a "quoted reply" view.
// * The gesture occured within or above the "quoted reply" view.
CGPoint location = [self convertPoint:locationInMessageBubble toView:self.linkPreviewView];
if (CGRectContainsPoint(self.linkPreviewView.bounds, location)) {
return OWSMessageGestureLocation_LinkPreview;

@ -711,9 +711,15 @@ class MessageDetailViewController: OWSViewController, MediaGalleryDataSourceDele
}
func didTapConversationItem(_ viewItem: ConversationViewItem, linkPreview: OWSLinkPreview) {
// no - op
// TODO:
guard let urlString = linkPreview.urlString else {
owsFailDebug("Missing url.")
return
}
guard let url = URL(string: urlString) else {
owsFailDebug("Invalid url: \(urlString).")
return
}
UIApplication.shared.openURL(url)
}
@objc func didLongPressSent(sender: UIGestureRecognizer) {

Loading…
Cancel
Save