"This ensures proper saving of collaboration data when user leaves the room Fixes #9104"

This commit is contained in:
Shivansh Kumar 2025-02-10 01:14:48 +05:30
parent 9e49c9254b
commit 74b8f7ee26
3 changed files with 16 additions and 11 deletions

View file

@ -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>