Webatrice: show loading screen until protobuf initializes (#4559)

* show loading screen until protobuf initializes

* cleanup

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-04 16:03:39 -06:00 committed by GitHub
parent bb16ae09ef
commit 6928a2bd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 178 additions and 4 deletions

View file

@ -5,6 +5,10 @@ import { sanitizeHtml } from 'websocket/utils';
import NormalizeService from '../utils/NormalizeService';
export class SessionPersistence {
static initialized() {
ServerDispatch.initialized();
}
static clearStore() {
ServerDispatch.clearStore();
}

View file

@ -4,6 +4,7 @@ import ProtoFiles from '../ProtoFiles';
import { WebClient } from '../WebClient';
import { RoomEvents, SessionEvents } from '../events';
import { SessionPersistence } from '../persistence';
export interface ProtobufEvents {
[event: string]: Function;
@ -135,6 +136,8 @@ export class ProtobufService {
if (err) {
throw err;
}
SessionPersistence.initialized();
});
}
}