From d72fcefdc76ad76ecefb2c472b28a619695490b0 Mon Sep 17 00:00:00 2001 From: azivner Date: Fri, 4 Jan 2019 20:10:16 +0100 Subject: [PATCH] fix sync of deleted notes --- src/services/notes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/notes.js b/src/services/notes.js index 2e2f55486..ba2479e21 100644 --- a/src/services/notes.js +++ b/src/services/notes.js @@ -364,6 +364,8 @@ async function deleteNote(branch) { // content with non-existent protected session key // we don't reset content here, that's postponed and done later to give the user a chance to correct a mistake await sql.execute("UPDATE notes SET isDeleted = 1 WHERE noteId = ?", [note.noteId]); + // need to manually trigger sync since it's not taken care of by note save + await syncTableService.addNoteSync(note.noteId); for (const noteRevision of await note.getRevisions()) { await noteRevision.save();