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:
parent
61684b1071
commit
6520cc2496
|
@ -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,
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ export default [
|
|||
'analytics.rtcstatsEnabled',
|
||||
'audioLevelsInterval',
|
||||
'audioQuality',
|
||||
'autoKnockLobby',
|
||||
'apiLogLevels',
|
||||
'avgRtpStatsN',
|
||||
'backgroundAlpha',
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue