Fix Firefox indexedDB state change issue
Firefox ignores the state change of the conf state after reloading
This commit is contained in:
parent
06974b559e
commit
28878a0b12
@ -315,26 +315,23 @@ export class JitsiComponent extends BaseViewComponent implements OnInit, OnDestr
|
|||||||
await this.configsLoaded;
|
await this.configsLoaded;
|
||||||
|
|
||||||
this.subscriptions.push(
|
this.subscriptions.push(
|
||||||
this.storageMap
|
this.storageMap.watch(this.CONFERENCE_STATE_STORAGE_KEY).subscribe((confState: ConferenceState) => {
|
||||||
.watch(this.CONFERENCE_STATE_STORAGE_KEY)
|
if (confState in ConferenceState) {
|
||||||
.pipe(distinctUntilChanged())
|
if (this.enableJitsi && (!this.videoStreamUrl || !this.canSeeLiveStream)) {
|
||||||
.subscribe((confState: ConferenceState) => {
|
this.currentState = ConferenceState.jitsi;
|
||||||
if (confState in ConferenceState) {
|
} else if (!this.enableJitsi && this.videoStreamUrl && this.canSeeLiveStream) {
|
||||||
if (this.enableJitsi && (!this.videoStreamUrl || !this.canSeeLiveStream)) {
|
this.currentState = ConferenceState.stream;
|
||||||
this.currentState = ConferenceState.jitsi;
|
|
||||||
} else if (!this.enableJitsi && this.videoStreamUrl && this.canSeeLiveStream) {
|
|
||||||
this.currentState = ConferenceState.stream;
|
|
||||||
} else {
|
|
||||||
this.currentState = confState;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.setDefaultConfState();
|
this.currentState = confState;
|
||||||
}
|
}
|
||||||
// show stream window when the state changes to stream
|
} else {
|
||||||
if (this.currentState === ConferenceState.stream && !this.streamActiveInAnotherTab) {
|
this.setDefaultConfState();
|
||||||
this.showJitsiWindow = true;
|
}
|
||||||
}
|
// show stream window when the state changes to stream
|
||||||
}),
|
if (this.currentState === ConferenceState.stream && !this.streamActiveInAnotherTab) {
|
||||||
|
this.showJitsiWindow = true;
|
||||||
|
}
|
||||||
|
}),
|
||||||
// check if the operator is on the clos, remove from room if not permitted
|
// check if the operator is on the clos, remove from room if not permitted
|
||||||
this.closService.currentListOfSpeakersObservable
|
this.closService.currentListOfSpeakersObservable
|
||||||
.pipe(
|
.pipe(
|
||||||
|
Loading…
Reference in New Issue
Block a user