use the Matrix SDK's method for percent encoding

This commit is contained in:
fridtjof
2019-02-18 15:31:55 +01:00
parent 3a0fb32054
commit 3ad4481827
6 changed files with 15 additions and 21 deletions
@@ -1251,8 +1251,7 @@
if (roomIdOrAlias.length)
{
// Open the room or preview it
NSString *fragment = [NSString stringWithFormat:@"/room/%@",
[roomIdOrAlias stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLPathAllowedCharacterSet]];
NSString *fragment = [NSString stringWithFormat:@"/room/%@", [MXTools encodeURIComponent:roomIdOrAlias]];
[[AppDelegate theDelegate] handleUniversalLinkFragment:fragment];
}
[tableView deselectRowAtIndexPath:indexPath animated:NO];