core: add remote note if local note does not exist

This commit is contained in:
ammarahm-ed
2023-04-15 02:12:50 +05:00
committed by Ammar Ahmed
parent c9a657298c
commit 49e79b52b2

View File

@@ -59,7 +59,7 @@ export default class Notes extends Collection {
if (
remoteNote.deleted &&
remoteNote.deleteReason !== "localOnly" &&
!localNote.localOnly
(!localNote || !localNote.localOnly)
)
return await this._collection.addItem(remoteNote);