feat(Lobby): Adding autoknock feature as a config (#10366)

* adding lobby localization to "ca" lang

* feat(Lobby): Adding autoknock config

feat(Lobby): Adding autoknock config

Co-authored-by: Payetus <payet91@gmail.xom>
This commit is contained in:
Payetus 2021-11-17 17:24:18 +01:00 committed by GitHub
parent 61684b1071
commit 6520cc2496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -430,6 +430,9 @@ var config = {
// Hides lobby button
// hideLobbyButton: false,
// If Lobby is enabled starts knocking automatically.
// autoKnockLobby: false
// Require users to always specify a display name.
// requireDisplayName: true,

View File

@ -18,6 +18,7 @@ export default [
'analytics.rtcstatsEnabled',
'audioLevelsInterval',
'audioQuality',
'autoKnockLobby',
'apiLogLevels',
'avgRtpStatsN',
'backgroundAlpha',

View File

@ -180,8 +180,8 @@ export function isPrejoinPageVisible(state: Object): boolean {
* @returns {boolean}
*/
export function shouldAutoKnock(state: Object): boolean {
const { iAmRecorder, iAmSipGateway } = state['features/base/config'];
const { iAmRecorder, iAmSipGateway, autoKnockLobby } = state['features/base/config'];
return (isPrejoinPageEnabled(state) || (iAmRecorder && iAmSipGateway))
return (isPrejoinPageEnabled(state) || autoKnockLobby || (iAmRecorder && iAmSipGateway))
&& !state['features/lobby'].knocking;
}