mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
MESSENGER-3352 build settings
This commit is contained in:
@@ -978,9 +978,9 @@
|
||||
|
||||
if (sender == _submitButton)
|
||||
{
|
||||
if (BwiBuildSettings.bwiEnableLoginProtection) {
|
||||
if (BWIBuildSettings.shared.bwiEnableLoginProtection) {
|
||||
LoginProtectionService* service = [[LoginProtectionService alloc] init];
|
||||
service.hashes = BwiBuildSettings.bwiHashes;
|
||||
service.hashes = BWIBuildSettings.shared.bwiHashes;
|
||||
if (![service isValid:self->mxRestClient.homeserver]) {
|
||||
NSError *error = [[NSError alloc] initWithDomain:@"LoginProtectionError" code:0 userInfo:@{
|
||||
NSLocalizedDescriptionKey: [BWIL10n bwiLoginProtectionErrorMessage:AppInfo.current.displayName]}];
|
||||
|
||||
@@ -672,7 +672,7 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
|
||||
{
|
||||
userPresence = presence;
|
||||
|
||||
if (mxSession && (!hideUserPresence || BuildSettings.bwiPersonalState))
|
||||
if (mxSession && (!hideUserPresence || BWIBuildSettings.shared.bwiPersonalState))
|
||||
{
|
||||
// Update user presence on server side
|
||||
[mxSession.myUser setPresence:userPresence
|
||||
|
||||
@@ -1270,7 +1270,7 @@ NSString *const MXKContactManagerDataType = @"org.matrix.kit.MXKContactManagerDa
|
||||
- (void)refreshMatrixContacts
|
||||
{
|
||||
// bwi: only refresh contacts when file can be encrypted (SecureFileStore is only unlocked after Pin/pasphrase
|
||||
if ( BwiBuildSettings.forcedPinProtection && !EncryptionKeyManager.shared.isInitFinished ) {
|
||||
if ( BWIBuildSettings.shared.forcedPinProtection && !EncryptionKeyManager.shared.isInitFinished ) {
|
||||
return;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user