mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Open link preview URLs when tapped.
This commit is contained in:
parent
00f0d44903
commit
8452f5e74b
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue