fix: No items matches the No collection filter

This commit is contained in:
Artem Chepurnoy 2024-02-21 18:25:23 +02:00
parent d11e71cec7
commit b73faeb62c
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 3 additions and 0 deletions

View File

@ -261,6 +261,9 @@ sealed interface DFilter {
What.COLLECTION -> {
// Special case: check in the set of
// collections.
if (id == null) {
return@run cipher.collectionIds.isEmpty()
}
return@run id in cipher.collectionIds
}