Hidden force_default_hide_muc_participants query parameter, for testing

purpose.
This commit is contained in:
John Livingston
2024-01-31 18:12:53 +01:00
parent 9eb986ea85
commit 5d4bfceb73
4 changed files with 11 additions and 4 deletions

View File

@ -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
}
}