diff --git a/src/excalidraw-app/collab/Collab.tsx b/src/excalidraw-app/collab/Collab.tsx index 1cadd0eae..7f6e86e09 100644 --- a/src/excalidraw-app/collab/Collab.tsx +++ b/src/excalidraw-app/collab/Collab.tsx @@ -335,11 +335,13 @@ class Collab extends PureComponent { this.reportActive(); this.portal.socket.connect(); this.portal.socketInitialized = true; - this.setIsCollaborationPaused(false); - - if (callback) { - callback(); - } + this.portal.socket.emit(WS_SCENE_EVENT_TYPES.INIT); + this.portal.socket.once("client-broadcast", () => { + this.setIsCollaborationPaused(false); + if (callback) { + callback(); + } + }); } }; diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx index 051e1f76a..4cce2268b 100644 --- a/src/excalidraw-app/index.tsx +++ b/src/excalidraw-app/index.tsx @@ -497,7 +497,7 @@ const ExcalidrawWrapper = () => { case !document.hidden && collabAPI.isPaused(): excalidrawAPI.setToast({ message: t("toast.reconnectRoomServer"), - duration: 100000, + duration: Infinity, closable: true, });