mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Update app urls
This commit is contained in:
parent
71ec71b5f8
commit
9ad599f4d3
2 changed files with 6 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue