Update app urls

This commit is contained in:
Ismail Gulek 2020-07-01 14:17:42 +03:00
parent 71ec71b5f8
commit 9ad599f4d3
2 changed files with 6 additions and 5 deletions

View file

@ -23,11 +23,11 @@
<key>homeserver</key>
<string>matrix.org</string>
<key>webAppUrlDev</key>
<string>https://riot.im/develop</string>
<string>https://develop.element.io</string>
<key>webAppUrlBeta</key>
<string>https://riot.im/beta</string>
<string>https://staging.element.io</string>
<key>webAppUrl</key>
<string>https://riot.im/app</string>
<string>https://app.element.io</string>
<key>matrixApps</key>
<true/>
<key>integrationsUiUrl</key>

View file

@ -72,13 +72,14 @@
{
BOOL isUniversalLink = NO;
if ([url.host isEqualToString:@"vector.im"] || [url.host isEqualToString:@"www.vector.im"]
if ([url.host isEqualToString:@"element.io"] || [url.host isEqualToString:@"www.element.io"]
|| [url.host isEqualToString:@"vector.im"] || [url.host isEqualToString:@"www.vector.im"]
|| [url.host isEqualToString:@"riot.im"] || [url.host isEqualToString:@"www.riot.im"])
{
// iOS Patch: fix vector.im/riot.im urls before using it
NSURL *fixedURL = [Tools fixURLWithSeveralHashKeys:url];
if (NSNotFound != [@[@"/app", @"/staging", @"/beta", @"/develop"] indexOfObject:fixedURL.path])
if (NSNotFound != [@[@"app.", @"staging.", @"develop."] indexOfObject:fixedURL.path])
{
isUniversalLink = YES;
}