Virtual whiteboard for sketching hand-drawn like diagrams
fix: Remove local elements when there is room data during `startCollaboration` (#9786)
Omar Brikaa00ae455873f1
diff --git a/excalidraw-app/collab/Collab.tsx b/excalidraw-app/collab/Collab.tsxindex bed130e24a..3c7e686d38 100644--- a/excalidraw-app/collab/Collab.tsx+++ b/excalidraw-app/collab/Collab.tsx@@ -530,7 +530,10 @@ class Collab extends PureComponent<CollabProps, CollabState> {return null;}- if (!existingRoomLinkData) {+ if (existingRoomLinkData) {+ // when joining existing room, don't merge it with current scene data+ this.excalidrawAPI.resetScene();+ } else {const elements = this.excalidrawAPI.getSceneElements().map((element) => {if (isImageElement(element) && element.status === "saved") {return newElementWith(element, { status: "pending" });