Fix autofocus.
This commit is contained in:
parent
718b9a41e7
commit
624f053d02
@ -85,10 +85,14 @@ async function initConverse (
|
|||||||
|
|
||||||
const isInIframe = inIframe()
|
const isInIframe = inIframe()
|
||||||
initDom(initConverseParams, isInIframe)
|
initDom(initConverseParams, isInIframe)
|
||||||
if (!isInIframe) { initConverseParams.autofocus = true }
|
|
||||||
if (isInIframe || chatIncludeMode === 'peertube-video') {
|
// Autofocus: false if besides video, or if an external iframe
|
||||||
initConverseParams.forceDefaultHideMucParticipants = true
|
initConverseParams.autofocus = (chatIncludeMode === 'peertube-fullpage') ||
|
||||||
}
|
(chatIncludeMode === 'chat-only' && !isInIframe)
|
||||||
|
|
||||||
|
// hide participant if in an external iframe, or besides video.
|
||||||
|
initConverseParams.forceDefaultHideMucParticipants = (isInIframe || chatIncludeMode === 'peertube-video')
|
||||||
|
|
||||||
const params = defaultConverseParams(initConverseParams)
|
const params = defaultConverseParams(initConverseParams)
|
||||||
params.view_mode = chatIncludeMode === 'chat-only' ? 'fullscreen' : 'embedded'
|
params.view_mode = chatIncludeMode === 'chat-only' ? 'fullscreen' : 'embedded'
|
||||||
params.allow_url_history_change = chatIncludeMode === 'chat-only'
|
params.allow_url_history_change = chatIncludeMode === 'chat-only'
|
||||||
|
Loading…
Reference in New Issue
Block a user