Fix Firefox indexedDB state change issue

Firefox ignores the state change of the conf state
after reloading
This commit is contained in:
Sean 2020-09-04 14:19:50 +02:00
parent 06974b559e
commit 28878a0b12

View File

@ -315,10 +315,7 @@ export class JitsiComponent extends BaseViewComponent implements OnInit, OnDestr
await this.configsLoaded;
this.subscriptions.push(
this.storageMap
.watch(this.CONFERENCE_STATE_STORAGE_KEY)
.pipe(distinctUntilChanged())
.subscribe((confState: ConferenceState) => {
this.storageMap.watch(this.CONFERENCE_STATE_STORAGE_KEY).subscribe((confState: ConferenceState) => {
if (confState in ConferenceState) {
if (this.enableJitsi && (!this.videoStreamUrl || !this.canSeeLiveStream)) {
this.currentState = ConferenceState.jitsi;