Skip to content

Commit

Permalink
NMC 2161 - Avoid encrypted folder for getting select
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-amrutwaghmare committed Apr 15, 2024
1 parent af4abd1 commit db1e074
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ extension NCSelectableNavigationView where Self: UIViewController {

for ocId in selectOcId {
guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(ocId) else { continue }
selectedMetadatas.append(metadata)
if metadata.e2eEncrypted {
selectOcId.removeAll(where: {$0 == metadata.ocId})
} else {
selectedMetadatas.append(metadata)
}

if [NKCommon.TypeClassFile.image.rawValue, NKCommon.TypeClassFile.video.rawValue].contains(metadata.classFile) {
selectedMediaMetadatas.append(metadata)
}
Expand Down

0 comments on commit db1e074

Please sign in to comment.