BuildSettings: Integrate Sygnal URL

This commit is contained in:
manuroe 2020-07-31 12:12:05 +02:00
parent 8a57df8b18
commit 94971a58d7
3 changed files with 6 additions and 4 deletions

View file

@ -34,6 +34,10 @@ final class BuildSettings: NSObject {
static let applicationWebAppUrlString = "https://app.element.io"
// MARK: - Server configuration
static let sygnalAPIUrlString = "https://matrix.org/_matrix/push/v1/notify"
// MARK: - Legal URLs
static let applicationCopyrightUrlString = "https://element.io/copyright"
static let applicationPrivacyPolicyUrlString = "https://element.io/privacy"

View file

@ -1939,7 +1939,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
account.mxSession.roomSummaryUpdateDelegate = eventFormatter;
// Set the push gateway URL.
account.pushGatewayURL = [[NSUserDefaults standardUserDefaults] objectForKey:@"pushGatewayURL"];
account.pushGatewayURL = BuildSettings.sygnalAPIUrlString;
BOOL isPushRegistered = self.pushNotificationService.isPushRegistered;
@ -2055,7 +2055,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
// Set this url in the existing accounts when it is undefined.
if (!account.pushGatewayURL)
{
account.pushGatewayURL = [[NSUserDefaults standardUserDefaults] objectForKey:@"pushGatewayURL"];
account.pushGatewayURL = BuildSettings.sygnalAPIUrlString;
}
}

View file

@ -6,8 +6,6 @@
<true/>
<key>pinRoomsWithUnread</key>
<true/>
<key>pushGatewayURL</key>
<string>https://matrix.org/_matrix/push/v1/notify</string>
<key>pushKitAppIdProd</key>
<string>im.vector.app.ios.voip.prod</string>
<key>pushKitAppIdDev</key>