Hidden force_default_hide_muc_participants query parameter, for testing
purpose.
This commit is contained in:
@ -21,6 +21,7 @@ interface GetConverseJSParamsParams {
|
||||
readonly?: boolean | 'noscroll'
|
||||
transparent?: boolean
|
||||
forcetype?: boolean
|
||||
forceDefaultHideMucParticipants?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
@ -86,7 +87,10 @@ async function getConverseJSParams (
|
||||
autoViewerMode,
|
||||
theme: converseJSTheme,
|
||||
forceReadonly,
|
||||
transparent
|
||||
transparent,
|
||||
// forceDefaultHideMucParticipants is for testing purpose
|
||||
// (so we can stress test with the muc participant list hidden by default)
|
||||
forceDefaultHideMucParticipants: params.forceDefaultHideMucParticipants
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,8 @@ async function initWebchatRouter (options: RegisterServerOptionsV5): Promise<Rou
|
||||
const initConverseJSParam = await getConverseJSParams(options, roomKey, {
|
||||
readonly,
|
||||
transparent: req.query._transparent === 'true',
|
||||
forcetype: req.query.forcetype === '1'
|
||||
forcetype: req.query.forcetype === '1',
|
||||
forceDefaultHideMucParticipants: req.query.force_default_hide_muc_participants === '1'
|
||||
})
|
||||
|
||||
if (('isError' in initConverseJSParam)) {
|
||||
|
Reference in New Issue
Block a user