mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge 1053a51f64
into 192c4e7658
This commit is contained in:
commit
dcd010c475
4 changed files with 29 additions and 13 deletions
|
@ -482,7 +482,7 @@ const ExcalidrawWrapper = () => {
|
|||
collabAPI?.isCollaborating() &&
|
||||
!isCollaborationLink(window.location.href)
|
||||
) {
|
||||
collabAPI.stopCollaboration(false);
|
||||
await collabAPI.stopCollaboration(false);
|
||||
}
|
||||
excalidrawAPI.updateScene({ appState: { isLoading: true } });
|
||||
|
||||
|
@ -980,9 +980,9 @@ const ExcalidrawWrapper = () => {
|
|||
"exit",
|
||||
"collaboration",
|
||||
],
|
||||
perform: () => {
|
||||
perform: async () => {
|
||||
if (collabAPI) {
|
||||
collabAPI.stopCollaboration();
|
||||
await collabAPI.stopCollaboration();
|
||||
if (!collabAPI.isCollaborating()) {
|
||||
setShareDialogState({ isOpen: false });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue