|
|
@@ -103,6 +103,7 @@ class YjsConnectionManager {
|
|
|
if (diff.reduce((prev, curr) => prev + curr, 0) > 0) {
|
|
|
await this.mdb.storeUpdate(pageId, diff);
|
|
|
}
|
|
|
+ Y.applyUpdate(currentYdoc, Y.encodeStateAsUpdate(persistedYdoc));
|
|
|
}
|
|
|
|
|
|
public getCurrentYdoc(pageId: string): Ydoc | undefined {
|