diff --git a/Riot/Modules/Communities/Home/GroupHomeViewController.m b/Riot/Modules/Communities/Home/GroupHomeViewController.m index d0c0b2605..a9f939bf6 100644 --- a/Riot/Modules/Communities/Home/GroupHomeViewController.m +++ b/Riot/Modules/Communities/Home/GroupHomeViewController.m @@ -786,11 +786,8 @@ if ([Tools isUniversalLink:URL]) { shouldInteractWithURL = NO; - - // iOS Patch: fix vector.im urls before using it - NSURL *fixedURL = [Tools fixURLWithSeveralHashKeys:URL]; - - [[AppDelegate theDelegate] handleUniversalLinkFragment:fixedURL.fragment]; + + [[AppDelegate theDelegate] handleUniversalLinkURL:URL]; } // Open a detail screen about the clicked user else if ([MXTools isMatrixUserIdentifier:absoluteURLString]) diff --git a/Riot/Modules/Room/RoomViewController.m b/Riot/Modules/Room/RoomViewController.m index fa4be8496..ef8de73b7 100644 --- a/Riot/Modules/Room/RoomViewController.m +++ b/Riot/Modules/Room/RoomViewController.m @@ -3173,10 +3173,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05; { shouldDoAction = NO; - // iOS Patch: fix vector.im urls before using it - NSURL *fixedURL = [Tools fixURLWithSeveralHashKeys:url]; - - [[AppDelegate theDelegate] handleUniversalLinkFragment:fixedURL.fragment]; + [[AppDelegate theDelegate] handleUniversalLinkURL:url]; } // Open a detail screen about the clicked user else if ([MXTools isMatrixUserIdentifier:absoluteURLString]) @@ -3215,7 +3212,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05; // Open the room or preview it NSString *fragment = [NSString stringWithFormat:@"/room/%@", [MXTools encodeURIComponent:roomIdOrAlias]]; - [[AppDelegate theDelegate] handleUniversalLinkFragment:fragment]; + [[AppDelegate theDelegate] handleUniversalLinkFragment:fragment fromURL:url]; } // Preview the clicked group else if ([MXTools isMatrixGroupIdentifier:absoluteURLString]) @@ -3224,7 +3221,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05; // Open the group or preview it NSString *fragment = [NSString stringWithFormat:@"/group/%@", [MXTools encodeURIComponent:absoluteURLString]]; - [[AppDelegate theDelegate] handleUniversalLinkFragment:fragment]; + [[AppDelegate theDelegate] handleUniversalLinkFragment:fragment fromURL:url]; } else if ([absoluteURLString hasPrefix:EventFormatterOnReRequestKeysLinkAction]) {