Преглед изворни кода

#2073

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana пре 3 година
родитељ
комит
3ab50d5094
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      iOSClient/Menu/NCCollectionViewCommon+Menu.swift

+ 1 - 1
iOSClient/Menu/NCCollectionViewCommon+Menu.swift

@@ -325,7 +325,7 @@ extension NCCollectionViewCommon {
         //
         // SET FOLDER E2EE
         //
-        if !metadata.e2eEncrypted && metadata.directory && CCUtility.isEnd(toEndEnabled: appDelegate.account) && metadata.serverUrl == serverUrlHome {
+        if !metadata.e2eEncrypted && metadata.directory && CCUtility.isEnd(toEndEnabled: appDelegate.account) && metadata.serverUrl == serverUrlHome && metadata.size == 0 {
             actions.append(
                 NCMenuAction(
                     title: NSLocalizedString("_e2e_set_folder_encrypted_", comment: ""),