File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ export default {
464464
465465 onLoaded ({ documentSource, documentState }) {
466466 if (documentState) {
467- applyDocumentState (this .$ydoc , documentState)
467+ applyDocumentState (this .$ydoc , documentState, this . $providers [ 0 ] )
468468 }
469469
470470 this .hasConnectionIssue = false
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ export function getDocumentState(ydoc) {
3636 *
3737 * @param {Doc } ydoc - apply state to this doc
3838 * @param {string } documentState - base64 encoded doc state
39+ * @param {object } origin - initiator object e.g. WebsocketProvider
3940 */
40- export function applyDocumentState ( ydoc , documentState ) {
41+ export function applyDocumentState ( ydoc , documentState , origin ) {
4142 const update = decodeArrayBuffer ( documentState )
42- applyUpdate ( ydoc , update )
43+ applyUpdate ( ydoc , update , origin )
4344}
You can’t perform that action at this time.
0 commit comments