Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: return room lock conference, when there is no other

Bettenbuk Zoltan8f0a12016a36
diff --git a/react/features/base/conference/functions.js b/react/features/base/conference/functions.js
index b10ab4b622..5303e78348 100644
--- a/react/features/base/conference/functions.js
+++ b/react/features/base/conference/functions.js
@@ -178,13 +178,15 @@ export function getConferenceName(stateful: Function | Object): string {
* @returns {JitsiConference|undefined}
*/
export function getCurrentConference(stateful: Function | Object) {
- const { conference, joining, leaving }
+ const { conference, joining, leaving, passwordRequired }
= toState(stateful)['features/base/conference'];
- return (
- conference
- ? conference === leaving ? undefined : conference
- : joining);
+ // There is a precendence
+ if (conference) {
+ return conference === leaving ? undefined : conference;
+ }
+
+ return joining || passwordRequired;
}
/**