Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com

fix(frontend): pass myClientID to collab() so receiveTransaction can match own steps and skip re-applying them

+1 -1
+1 -1
templates/document_edit.html
··· 323 323 // so sendableSteps/receiveTransaction have a state slot to read from. 324 324 ctx.update(prosePluginsCtx, (plugins) => [ 325 325 ...plugins, 326 - collab({ version: collabClient.version }), 326 + collab({ version: collabClient.version, clientID: myClientID }), 327 327 ]); 328 328 // Override dispatchTransaction to notify CollabClient after every 329 329 // local transaction. CollabClient calls sendableSteps itself at