From dfca8f960a93fa286aaffd981204550b2f114abe Mon Sep 17 00:00:00 2001 From: Shweta Waikar Date: Thu, 6 Jul 2023 14:34:05 +0530 Subject: [PATCH] NMC 2373 - Selection hidden for E2EFolders in List and Grid mode --- iOSClient/Main/Collection Common/NCGridCell.swift | 2 +- iOSClient/Main/Collection Common/NCListCell.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iOSClient/Main/Collection Common/NCGridCell.swift b/iOSClient/Main/Collection Common/NCGridCell.swift index 4a59797284..2cf78b097f 100644 --- a/iOSClient/Main/Collection Common/NCGridCell.swift +++ b/iOSClient/Main/Collection Common/NCGridCell.swift @@ -180,7 +180,7 @@ class NCGridCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto } func selected(_ status: Bool) { - guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isDownloadUpload else { + guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isDownloadUpload, !metadata.e2eEncrypted else { imageSelect.isHidden = true imageVisualEffect.isHidden = true return diff --git a/iOSClient/Main/Collection Common/NCListCell.swift b/iOSClient/Main/Collection Common/NCListCell.swift index 0a8b85ac94..ac4da920d9 100755 --- a/iOSClient/Main/Collection Common/NCListCell.swift +++ b/iOSClient/Main/Collection Common/NCListCell.swift @@ -253,7 +253,7 @@ class NCListCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto } func selected(_ status: Bool) { - guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isDownloadUpload else { + guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(objectId), !metadata.isDownloadUpload, !metadata.e2eEncrypted else { backgroundView = nil separator.isHidden = false return