Open link preview URLs when tapped.
This commit is contained in:
parent
00f0d44903
commit
8452f5e74b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue