feat: refactor local persistence & fix race condition on SW reload (#5032)

This commit is contained in:
David Luzar
2022-04-11 22:15:49 +02:00
committed by GitHub
parent 58fe639b8d
commit 5359e4fec9
6 changed files with 232 additions and 132 deletions

View File

@@ -172,7 +172,7 @@ class Portal {
this.queueFileUpload();
if (syncAll && this.collab.isCollaborating) {
if (syncAll && this.collab.isCollaborating()) {
await Promise.all([
broadcastPromise,
this.collab.saveCollabRoomToFirebase(syncableElements),