Open link preview URLs when tapped.

This commit is contained in:
Matthew Chen 2019-01-22 11:18:39 -05:00
parent 00f0d44903
commit 8452f5e74b
1 changed files with 7 additions and 1 deletions

View File

@ -2342,7 +2342,13 @@ typedef enum : NSUInteger {
{
OWSAssertIsOnMainThread();
// TODO:
NSURL *_Nullable url = [NSURL URLWithString:linkPreview.urlString];
if (!url) {
OWSFailDebug(@"Invalid link preview URL.");
return;
}
[UIApplication.sharedApplication openURL:url];
}
- (void)showDetailViewForViewItem:(id<ConversationViewItem>)conversationItem