A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: add item synced check in trash
thecodrr0d5c1990eca7
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.jsindex 044c38b19..fc994bd45 100644--- a/packages/core/collections/trash.js+++ b/packages/core/collections/trash.js@@ -128,6 +128,14 @@ export default class Trash {await this.delete(item.id);}}++ synced(id) {+ let [item] = this._getItem(id);+ if (item.itemType === "note") {+ const { contentId } = item;+ return this._db.content.exists(contentId);+ } else return true;+ }}function collectionNameFromItem(item) {