fix: emit scene init event after reconnecting
This commit is contained in:
parent
52254bca7c
commit
aa91af8f7d
@ -335,11 +335,13 @@ class Collab extends PureComponent<Props, CollabState> {
|
|||||||
this.reportActive();
|
this.reportActive();
|
||||||
this.portal.socket.connect();
|
this.portal.socket.connect();
|
||||||
this.portal.socketInitialized = true;
|
this.portal.socketInitialized = true;
|
||||||
this.setIsCollaborationPaused(false);
|
this.portal.socket.emit(WS_SCENE_EVENT_TYPES.INIT);
|
||||||
|
this.portal.socket.once("client-broadcast", () => {
|
||||||
if (callback) {
|
this.setIsCollaborationPaused(false);
|
||||||
callback();
|
if (callback) {
|
||||||
}
|
callback();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ const ExcalidrawWrapper = () => {
|
|||||||
case !document.hidden && collabAPI.isPaused():
|
case !document.hidden && collabAPI.isPaused():
|
||||||
excalidrawAPI.setToast({
|
excalidrawAPI.setToast({
|
||||||
message: t("toast.reconnectRoomServer"),
|
message: t("toast.reconnectRoomServer"),
|
||||||
duration: 100000,
|
duration: Infinity,
|
||||||
closable: true,
|
closable: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user