mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
consolidate & align collaboration socket eventing with server
This commit is contained in:
parent
96320478e6
commit
5706dd7ae2
7 changed files with 39 additions and 29 deletions
|
@ -34,8 +34,7 @@ export function getDefaultAppState(): AppState {
|
|||
openMenu: null,
|
||||
lastPointerDownWith: "mouse",
|
||||
selectedElementIds: {},
|
||||
remotePointers: {},
|
||||
collaboratorCount: 0,
|
||||
collaborators: new Map(),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -47,6 +46,8 @@ export function clearAppStateForLocalStorage(appState: AppState) {
|
|||
editingElement,
|
||||
selectionElement,
|
||||
isResizing,
|
||||
collaborators,
|
||||
isCollaborating,
|
||||
...exportedState
|
||||
} = appState;
|
||||
return exportedState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue