mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Update universal links origin
This commit is contained in:
parent
9b580d4204
commit
f10b16ab74
4 changed files with 8 additions and 5 deletions
|
@ -43,7 +43,7 @@
|
||||||
+ (BOOL)isUniversalLink:(NSURL*)url;
|
+ (BOOL)isUniversalLink:(NSURL*)url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Fix a http://vector.im path url.
|
Fix a http://vector.im or http://vector.im path url.
|
||||||
|
|
||||||
This method fixes the issue with iOS which handles URL badly when there are several hash
|
This method fixes the issue with iOS which handles URL badly when there are several hash
|
||||||
keys ('%23') in the link.
|
keys ('%23') in the link.
|
||||||
|
|
|
@ -72,9 +72,10 @@
|
||||||
{
|
{
|
||||||
BOOL isUniversalLink = NO;
|
BOOL isUniversalLink = NO;
|
||||||
|
|
||||||
if ([url.host isEqualToString:@"vector.im"] || [url.host isEqualToString:@"www.vector.im"])
|
if ([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 urls before using it
|
// iOS Patch: fix vector.im/riot.im urls before using it
|
||||||
NSURL *fixedURL = [Tools fixURLWithSeveralHashKeys:url];
|
NSURL *fixedURL = [Tools fixURLWithSeveralHashKeys:url];
|
||||||
|
|
||||||
if (NSNotFound != [@[@"/app", @"/staging", @"/beta", @"/develop"] indexOfObject:fixedURL.path])
|
if (NSNotFound != [@[@"/app", @"/staging", @"/beta", @"/develop"] indexOfObject:fixedURL.path])
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
<key>homeserver</key>
|
<key>homeserver</key>
|
||||||
<string>matrix.org</string>
|
<string>matrix.org</string>
|
||||||
<key>webAppUrlDev</key>
|
<key>webAppUrlDev</key>
|
||||||
<string>https://vector.im/develop</string>
|
<string>https://riot.im/develop</string>
|
||||||
<key>webAppUrlBeta</key>
|
<key>webAppUrlBeta</key>
|
||||||
<string>https://vector.im/beta</string>
|
<string>https://riot.im/beta</string>
|
||||||
<key>apnsDeviceToken</key>
|
<key>apnsDeviceToken</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>showAllEventsInRoomHistory</key>
|
<key>showAllEventsInRoomHistory</key>
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
<array>
|
<array>
|
||||||
<string>applinks:www.vector.im</string>
|
<string>applinks:www.vector.im</string>
|
||||||
<string>applinks:vector.im</string>
|
<string>applinks:vector.im</string>
|
||||||
|
<string>applinks:riot.im</string>
|
||||||
|
<string>applinks:www.riot.im</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in a new issue