Skip to content

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

sync: merge remote trash items directly

thecodrra64c600e621e
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.js
index 0caeea460..e91e22b63 100644
--- a/packages/core/collections/trash.js
+++ b/packages/core/collections/trash.js
@@ -44,7 +44,7 @@ export default class Trash {
}
async add(item) {
- if (item.dateDeleted) {
+ if (item.dateDeleted || item.deleted) {
return await this._collection.addItem(item);
}
await this._collection.addItem({