take care of percent encoding related deprecations

This commit is contained in:
fridtjof
2019-02-04 21:15:47 +01:00
parent e09eb3943a
commit 1c2df753da
6 changed files with 29 additions and 19 deletions
@@ -1251,7 +1251,8 @@
if (roomIdOrAlias.length)
{
// Open the room or preview it
NSString *fragment = [NSString stringWithFormat:@"/room/%@", [roomIdOrAlias stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSString *fragment = [NSString stringWithFormat:@"/room/%@",
[roomIdOrAlias stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLPathAllowedCharacterSet]];
[[AppDelegate theDelegate] handleUniversalLinkFragment:fragment];
}
[tableView deselectRowAtIndexPath:indexPath animated:NO];