fix: return room lock conference, when there is no other
This commit is contained in:
parent
34ccd3524f
commit
8f0a12016a
|
@ -178,13 +178,15 @@ export function getConferenceName(stateful: Function | Object): string {
|
||||||
* @returns {JitsiConference|undefined}
|
* @returns {JitsiConference|undefined}
|
||||||
*/
|
*/
|
||||||
export function getCurrentConference(stateful: Function | Object) {
|
export function getCurrentConference(stateful: Function | Object) {
|
||||||
const { conference, joining, leaving }
|
const { conference, joining, leaving, passwordRequired }
|
||||||
= toState(stateful)['features/base/conference'];
|
= toState(stateful)['features/base/conference'];
|
||||||
|
|
||||||
return (
|
// There is a precendence
|
||||||
conference
|
if (conference) {
|
||||||
? conference === leaving ? undefined : conference
|
return conference === leaving ? undefined : conference;
|
||||||
: joining);
|
}
|
||||||
|
|
||||||
|
return joining || passwordRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue