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

@ -36,7 +36,7 @@ export function restoreFromLocalStorage() {
appState = JSON.parse(savedState) as AppState;
// If we're retrieving from local storage, we should not be collaborating
appState.isCollaborating = false;
appState.collaboratorCount = 0;
appState.collaborators = new Map();
} catch {
// Do nothing because appState is already null
}