Some styling and html fixes.

This commit is contained in:
John Livingston
2024-04-02 17:40:43 +02:00
parent 612a9f622d
commit 610040b253
9 changed files with 40 additions and 29 deletions

View File

@ -86,7 +86,11 @@ async function initConverse (
const isInIframe = inIframe()
initDom(initConverseParams, isInIframe)
const params = defaultConverseParams(initConverseParams, isInIframe)
if (!isInIframe) { initConverseParams.autofocus = true }
if (isInIframe || chatIncludeMode === 'peertube-video') {
initConverseParams.forceDefaultHideMucParticipants = true
}
const params = defaultConverseParams(initConverseParams)
params.view_mode = chatIncludeMode === 'chat-only' ? 'fullscreen' : 'embedded'
params.allow_url_history_change = chatIncludeMode === 'chat-only'