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
commit 37284c9174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}