Skip to content

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

fix: do not create new trash item on sync

thecodrr5cce79825738
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.js
index 314f483f4..0caeea460 100644
--- a/packages/core/collections/trash.js
+++ b/packages/core/collections/trash.js
@@ -44,6 +44,9 @@ export default class Trash {
}
async add(item) {
+ if (item.dateDeleted) {
+ return await this._collection.addItem(item);
+ }
await this._collection.addItem({
...item,
id: getId(),