consolidate & align collaboration socket eventing with server

This commit is contained in:
dwelle 2020-03-12 12:19:56 +01:00
parent 96320478e6
commit 5706dd7ae2
7 changed files with 39 additions and 29 deletions

View file

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