Browse Source

DISABLE E2EE

marinofaggiana 4 years ago
parent
commit
0fe8446e7c
2 changed files with 7 additions and 0 deletions
  1. 3 0
      iOSClient/Settings/NCManageEndToEndEncryption.m
  2. 4 0
      iOSClient/Utility/CCUtility.m

+ 3 - 0
iOSClient/Settings/NCManageEndToEndEncryption.m

@@ -44,6 +44,9 @@
     XLFormRowDescriptor *row;
     
     BOOL isE2EEEnabled = [[NCManageDatabase sharedInstance] getCapabilitiesServerBoolWithAccount:appDelegate.activeAccount elements:NCElementsJSON.shared.capabilitiesE2EEEnabled exists:false];
+    // DISABLE E2EE
+    isE2EEEnabled = NO;
+    // DISABLE E2EE
     if (isE2EEEnabled == NO) {
         
         // Section SERVICE NOT AVAILABLE -------------------------------------------------

+ 4 - 0
iOSClient/Utility/CCUtility.m

@@ -412,6 +412,10 @@
 
 + (BOOL)isEndToEndEnabled:(NSString *)account
 {
+    // DISABLE E2EE
+    return false;
+    // DISABLE E2EE
+    
     BOOL isE2EEEnabled = [[NCManageDatabase sharedInstance] getCapabilitiesServerBoolWithAccount:account elements:NCElementsJSON.shared.capabilitiesE2EEEnabled exists:false];
     
     NSString *publicKey = [self getEndToEndPublicKey:account];