Syncing ephemeral element updates

This commit is contained in:
Marcel Mraz
2025-01-29 17:43:38 +01:00
parent c57249481e
commit 310a9ae4e0
60 changed files with 1104 additions and 906 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ import throttle from "lodash.throttle";
import { newElementWith } from "../../packages/excalidraw/element/mutateElement";
import { encryptData } from "../../packages/excalidraw/data/encryption";
import type { Socket } from "socket.io-client";
import { StoreAction } from "../../packages/excalidraw";
import { SnapshotAction } from "../../packages/excalidraw";
class Portal {
collab: TCollabClass;
@@ -133,7 +133,7 @@ class Portal {
if (isChanged) {
this.collab.excalidrawAPI.updateScene({
elements: newElements,
storeAction: StoreAction.UPDATE,
snapshotAction: SnapshotAction.UPDATE,
});
}
}, FILE_UPLOAD_TIMEOUT);