소스 검색

fix message e2e

Marino Faggiana 7 년 전
부모
커밋
2643eadc06
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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];            
     }
 }