A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix content is not updated for new notes in realtime sync
Abdullah Attaa66c72e0999f
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsxindex fbe8433d8..ac45f1c9f 100644--- a/apps/web/src/components/editor/index.tsx+++ b/apps/web/src/components/editor/index.tsx@@ -176,13 +176,14 @@ function EditorView({(item.type !== "tiptap" && item.type !== "note") ||lastChangedTime.current >= (item.dateEdited as number) ||!appstore.get().isRealtimeSyncEnabled- )+ ) {+ console.log("ignoring real time sync");return;+ }- const { contentId } = session.note;- const isContent = item.type === "tiptap" && item.id === contentId;+ const isContent =+ item.type === "tiptap" && item.noteId === session.note.id;const isNote = item.type === "note" && item.id === session.note.id;-if (isContent) {if (!item.locked) return editor.updateContent(item.data);