Skip to content

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

web: fix real time sync ignored when resolved content is synced

Abdullah Attaca6f8e5e4bce
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 8702a65d1..36eaed265 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -271,7 +271,7 @@ function EditorView({
const isContent =
item.type === "tiptap" && item.noteId === session.note.id;
const isNote = item.type === "note" && item.id === session.note.id;
- if (isContent && lastChangedTime.current < item.dateEdited) {
+ if (isContent && lastChangedTime.current < item.dateModified) {
if (!item.locked) return editor.updateContent(item.data);
const result = await db.vault