Browse Source

fix message e2e

Marino Faggiana 7 years ago
parent
commit
2643eadc06
1 changed files with 5 additions and 1 deletions
  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];            
     }
 }