Skip to content

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

mobile: fix search in archived notes returns no results

Ammar Ahmedd61f9472c8b6
diff --git a/packages/core/src/api/lookup.ts b/packages/core/src/api/lookup.ts
index d2506a17e..d1ae43f00 100644
--- a/packages/core/src/api/lookup.ts
+++ b/packages/core/src/api/lookup.ts
@@ -273,7 +273,7 @@ export default class Lookup {
);
matches.ids = matches.values.map((c) => c.id);
} else {
- const sortedNoteIds = await this.db.notes.all
+ const sortedNoteIds = await this.db.notes.exportable
.fields(["notes.id"])
.items(matches.ids, sortOptions);
const sorted: Matches = { ids: [], values: [] };