Skip to content

Commit 862a48a

Browse files
NMC-6106 - Sub encrypted file folder - After "Select" from top - footer option shows "Move or copy" icon button and while doing this it fails and gives error -> "Copy or move" action option should not display for any encrypted files/folder
1 parent 91f9596 commit 862a48a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

iOSClient/Main/Collection Common/NCCollectionViewCommonSelectTabBar.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,27 @@ class NCCollectionViewCommonSelectTabBar: ObservableObject {
100100
isAnyEncrypted = false
101101
canUnlock = true
102102
self.metadatas = metadatas
103-
103+
104104
for metadata in metadatas {
105105
if metadata.directory {
106106
isAnyDirectory = true
107107
} else {
108108
isAllDirectory = false
109109
}
110-
110+
111111
if !metadata.canSetAsAvailableOffline {
112112
canSetAsOffline = false
113113
}
114-
114+
115115
if metadata.lock {
116116
isAnyLocked = true
117117
if metadata.lockOwner != userId {
118118
canUnlock = false
119119
}
120120
}
121-
121+
122122
// If any selected item is end-to-end encrypted, mark it so we can hide copy/move
123-
if (metadata.responds(to: Selector(("e2eEncrypted"))) ? (metadata.value(forKey: "e2eEncrypted") as? Bool ?? false) : (metadata.value(forKey: "isEncrypted") as? Bool ?? false)) {
123+
if metadata.isDirectoryE2EE || metadata.e2eEncrypted {
124124
isAnyEncrypted = true
125125
}
126126

0 commit comments

Comments
 (0)