Explorar o código

fix message e2e

Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
2643eadc06
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      iOSClient/Main/CCMain.m

+ 5 - 1
iOSClient/Main/CCMain.m

@@ -1843,7 +1843,11 @@
     
     // Is encrypted folder get metadata
     if (metadataFolder.encrypted == true) {
-        [app.endToEndInterface getEndToEndMetadata:metadataFolder];
+        
+        if ([CCUtility isEndToEndEnabled:app.activeAccount])
+            [app.endToEndInterface getEndToEndMetadata:metadataFolder];
+        else
+            [app messageNotification:@"_info_" description:@"You are in a encrypted directory, go to on \"Settings\" and enable the End-To-End Encryption" visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeInfo errorCode:0];            
     }
 }