Skip to content

Commit

Permalink
Merge pull request #97 from nextmcloud/NMC_2373_multiselection_not_po…
Browse files Browse the repository at this point in the history
…ssible_for_E2EFolder

NMC 2373 - Selection hidden for E2EFolders in List and Grid mode
  • Loading branch information
TSI-amrutwaghmare authored Jul 6, 2023
2 parents 8f4d41e + dfca8f9 commit b6877b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iOSClient/Main/Collection Common/NCGridCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion iOSClient/Main/Collection Common/NCListCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6877b0

Please sign in to comment.