Skip to content

Commit 721f6e6

Browse files
NMC 2172 - NMC 2401 Multi Selection removed for encrypted folder
1 parent 79c521f commit 721f6e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

iOSClient/Main/Collection Common/NCGridCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class NCGridCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
176176
}
177177

178178
func selected(_ status: Bool) {
179-
guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isInTransfer else {
179+
guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isInTransfer, !metadata.e2eEncrypted else {
180180
imageSelect.isHidden = true
181181
imageVisualEffect.isHidden = true
182182
return

iOSClient/Main/Collection Common/NCListCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class NCListCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
246246
}
247247

248248
func selected(_ status: Bool) {
249-
guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isInTransfer else {
249+
guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isInTransfer, !metadata.e2eEncrypted else {
250250
backgroundView = nil
251251
separator.isHidden = false
252252
return

0 commit comments

Comments
 (0)