Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: exclude archived notes from pinned filter

kashaf-ansari-devd1a26b9c863f
diff --git a/packages/core/src/collections/notes.ts b/packages/core/src/collections/notes.ts
index ad42eb3cb..4f79c42fa 100644
--- a/packages/core/src/collections/notes.ts
+++ b/packages/core/src/collections/notes.ts
@@ -285,6 +285,7 @@ export class Notes implements ICollection {
qb
.where(isFalse("dateDeleted"))
.where(isFalse("deleted"))
+ .where(isFalse("archived"))
.where("pinned", "==", true),
this.db.options?.batchSize
);