Browse Source

clear code

marinofaggiana 3 years ago
parent
commit
838313406e
2 changed files with 4 additions and 10 deletions
  1. 2 8
      iOSClient/Settings/NCEndToEndInitialize.swift
  2. 2 2
      iOSClient/Utility/CCUtility.h

+ 2 - 8
iOSClient/Settings/NCEndToEndInitialize.swift

@@ -160,10 +160,7 @@ class NCEndToEndInitialize : NSObject  {
                     NCCommunication.shared.getE2EEPublicKey { (account, publicKey, errorCode, errorDescription) in
                         
                         if (errorCode == 0 && account == self.appDelegate.account) {
-                            
-                            //TODO: verifi if publicKey == NCCommunication.shared.getE2EEPublicKey
-                            // + (NSString *)getEndToEndCertificate:(NSString *)account;
-                            
+                                                        
                             CCUtility.setEndToEndPublicKey(account, publicKey: publicKey)
                             
                             // Clear Table
@@ -243,10 +240,7 @@ class NCEndToEndInitialize : NSObject  {
                                 NCCommunication.shared.getE2EEPublicKey { (account, publicKey, errorCode, errorDescription) in
                                     
                                     if (errorCode == 0 && account == self.appDelegate.account) {
-                                        
-                                        //TODO: verifi if publicKey == NCCommunication.shared.getE2EEPublicKey
-                                        // + (NSString *)getEndToEndCertificate:(NSString *)account;
-                                        
+                                                                                
                                         CCUtility.setEndToEndPublicKey(account, publicKey: publicKey)
                                         
                                         // Clear Table

+ 2 - 2
iOSClient/Utility/CCUtility.h

@@ -94,7 +94,7 @@
 + (BOOL)getFormatCompatibility;
 + (void)setFormatCompatibility:(BOOL)set;
 
-// E2EE
+// E2EE -------------------------------------------
 
 + (NSString *)getEndToEndCertificate:(NSString *)account;
 + (void)setEndToEndCertificate:(NSString *)account certificate:(NSString *)certificate;
@@ -110,7 +110,7 @@
 
 + (BOOL)isEndToEndEnabled:(NSString *)account;
 
-// E2EE
+// E2EE -------------------------------------------
 
 + (void)clearAllKeysEndToEnd:(NSString *)account;