Merge pull request #915 from excalidraw/fix_remote_pointers

remove remote pointers on client disconnect
This commit is contained in:
Edwin Lin
2020-03-12 12:18:27 -07:00
committed by GitHub
7 changed files with 41 additions and 25 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
}