From 9aa84877ee3e6ea6003fa27f05d625213ba54c8c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 12 Mar 2026 21:03:12 +0200 Subject: [PATCH] fix(tree): not reacting to protected state changes --- apps/client/src/services/froca_updater.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/client/src/services/froca_updater.ts b/apps/client/src/services/froca_updater.ts index 6d6ef9213d..ca6c792746 100644 --- a/apps/client/src/services/froca_updater.ts +++ b/apps/client/src/services/froca_updater.ts @@ -110,7 +110,12 @@ function processNoteChange(loadResults: LoadResults, ec: EntityChange) { } } - if (ec.componentId) { + // Only register as a content change if the protection status didn't change. + // When isProtected changes, the blobId change is a side effect of re-encryption, + // not a content edit. Registering it as content would cause the tree's content-only + // filter to incorrectly skip the note update (since both changes share the same + // componentId). + if (ec.componentId && note.isProtected === (ec.entity as FNoteRow).isProtected) { loadResults.addNoteContent(note.noteId, ec.componentId); } }