matrix.to: Cannot open links with query parameters

#3990

The string can come percent encoded but we parse it with ascii chars ("?", "&", ...).
So, remove one layer of encoding to fix the bug.
This commit is contained in:
manuroe
2021-02-02 16:24:32 +01:00
parent 65318c08fd
commit 4ddb73e3fa
2 changed files with 5 additions and 0 deletions
@@ -1255,6 +1255,10 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
NSLog(@"[AppDelegate] Universal link: handleUniversalLinkFragment: %@", fragment);
// Make sure we have plain utf8 character for separators
fragment = [fragment stringByRemovingPercentEncoding];
NSLog(@"[AppDelegate] Universal link: handleUniversalLinkFragment: %@", fragment);
// The app manages only one universal link at a time
// Discard any pending one
[self resetPendingUniversalLink];