mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
BuildSettings: Integrate Sygnal URL
This commit is contained in:
parent
8a57df8b18
commit
94971a58d7
3 changed files with 6 additions and 4 deletions
|
@ -34,6 +34,10 @@ final class BuildSettings: NSObject {
|
||||||
static let applicationWebAppUrlString = "https://app.element.io"
|
static let applicationWebAppUrlString = "https://app.element.io"
|
||||||
|
|
||||||
|
|
||||||
|
// MARK: - Server configuration
|
||||||
|
static let sygnalAPIUrlString = "https://matrix.org/_matrix/push/v1/notify"
|
||||||
|
|
||||||
|
|
||||||
// MARK: - Legal URLs
|
// MARK: - Legal URLs
|
||||||
static let applicationCopyrightUrlString = "https://element.io/copyright"
|
static let applicationCopyrightUrlString = "https://element.io/copyright"
|
||||||
static let applicationPrivacyPolicyUrlString = "https://element.io/privacy"
|
static let applicationPrivacyPolicyUrlString = "https://element.io/privacy"
|
||||||
|
|
|
@ -1939,7 +1939,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
||||||
account.mxSession.roomSummaryUpdateDelegate = eventFormatter;
|
account.mxSession.roomSummaryUpdateDelegate = eventFormatter;
|
||||||
|
|
||||||
// Set the push gateway URL.
|
// Set the push gateway URL.
|
||||||
account.pushGatewayURL = [[NSUserDefaults standardUserDefaults] objectForKey:@"pushGatewayURL"];
|
account.pushGatewayURL = BuildSettings.sygnalAPIUrlString;
|
||||||
|
|
||||||
BOOL isPushRegistered = self.pushNotificationService.isPushRegistered;
|
BOOL isPushRegistered = self.pushNotificationService.isPushRegistered;
|
||||||
|
|
||||||
|
@ -2055,7 +2055,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
||||||
// Set this url in the existing accounts when it is undefined.
|
// Set this url in the existing accounts when it is undefined.
|
||||||
if (!account.pushGatewayURL)
|
if (!account.pushGatewayURL)
|
||||||
{
|
{
|
||||||
account.pushGatewayURL = [[NSUserDefaults standardUserDefaults] objectForKey:@"pushGatewayURL"];
|
account.pushGatewayURL = BuildSettings.sygnalAPIUrlString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
<true/>
|
<true/>
|
||||||
<key>pinRoomsWithUnread</key>
|
<key>pinRoomsWithUnread</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>pushGatewayURL</key>
|
|
||||||
<string>https://matrix.org/_matrix/push/v1/notify</string>
|
|
||||||
<key>pushKitAppIdProd</key>
|
<key>pushKitAppIdProd</key>
|
||||||
<string>im.vector.app.ios.voip.prod</string>
|
<string>im.vector.app.ios.voip.prod</string>
|
||||||
<key>pushKitAppIdDev</key>
|
<key>pushKitAppIdDev</key>
|
||||||
|
|
Loading…
Reference in a new issue