MESSENGER-3352 build settings

This commit is contained in:
Arnfried Griesert
2022-10-27 09:06:24 +00:00
parent e2a2eb4c61
commit 86aa5365bb
103 changed files with 1013 additions and 1360 deletions
@@ -386,7 +386,7 @@ enum {
cell.imageView.image = AssetImages.encryptionWarning.image;
}
if (BuildSettings.bwiDisableSecuritySettingsUntrustedDevices && !deviceInfo.trustLevel.isVerified) {
if (BWIBuildSettings.shared.bwiDisableSecuritySettingsUntrustedDevices && !deviceInfo.trustLevel.isVerified) {
cell.accessoryType = UITableViewCellAccessoryNone;
} else {
[cell vc_setAccessoryDisclosureIndicatorWithCurrentTheme];
@@ -552,7 +552,7 @@ enum {
}
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (BuildSettings.bwiDisableSecuritySettingsUntrustedDevices) {
if (BWIBuildSettings.shared.bwiDisableSecuritySettingsUntrustedDevices) {
if (indexPath.section == SECTION_SESSION_INFO && indexPath.row == SESSION_INFO_TRUST) {
NSString *deviceId = device.deviceId;
MXDeviceInfo *deviceInfo = [self.mainSession.crypto deviceWithDeviceId:deviceId ofUser:self.mainSession.myUser.userId];