mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #6396 from vector-im/aringenbach/6395_fix_room_links
Fix inoperant room links with alias/identifiers
This commit is contained in:
commit
b671b026c0
2 changed files with 12 additions and 2 deletions
|
@ -1312,9 +1312,18 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
|||
// Sanity check
|
||||
if (!pathParams.count)
|
||||
{
|
||||
// Handle simple room links with aliases/identifiers as UniversalLink will not parse these.
|
||||
NSString* absoluteUrl = [universalLink.url.absoluteString stringByRemovingPercentEncoding];
|
||||
if ([MXTools isMatrixRoomAlias:absoluteUrl]
|
||||
|| [MXTools isMatrixRoomIdentifier:absoluteUrl])
|
||||
{
|
||||
pathParams = @[absoluteUrl];
|
||||
}
|
||||
else {
|
||||
MXLogDebug(@"[AppDelegate] Universal link: Error: No path parameters");
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
NSString *roomIdOrAlias;
|
||||
NSString *eventId;
|
||||
|
|
1
changelog.d/6395.bugfix
Normal file
1
changelog.d/6395.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix inoperant room links with alias/identifiers
|
Loading…
Reference in a new issue