mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
"This ensures proper saving of collaboration data when user leaves the room Fixes #9104"
This commit is contained in:
parent
9e49c9254b
commit
74b8f7ee26
3 changed files with 16 additions and 11 deletions
|
@ -164,10 +164,11 @@ const ActiveRoomDialog = ({
|
|||
icon={playerStopFilledIcon}
|
||||
onClick={() => {
|
||||
trackEvent("share", "room closed");
|
||||
collabAPI.stopCollaboration();
|
||||
if (!collabAPI.isCollaborating()) {
|
||||
handleClose();
|
||||
}
|
||||
collabAPI.stopCollaboration().then(() => {
|
||||
if (!collabAPI.isCollaborating()) {
|
||||
handleClose();
|
||||
}
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue