Fix condition.

This commit is contained in:
John Livingston
2023-05-24 16:55:03 +02:00
parent ff96ff7763
commit efdf01cef2
2 changed files with 4 additions and 3 deletions

View File

@ -92,9 +92,10 @@ async function fillVideoRemoteLiveChat (
} else {
const settings = await options.settingsManager.getSettings([
'federation-no-remote-chat',
'prosody-room-allow-s2s'
'prosody-room-allow-s2s',
'disable-websocket'
])
const canWebsocketS2S = !settings['federation-no-remote-chat']
const canWebsocketS2S = !settings['federation-no-remote-chat'] && !settings['disable-websocket']
const canDirectS2S = !settings['federation-no-remote-chat'] && !!settings['prosody-room-allow-s2s']
if (compatibleRemoteAuthenticatedConnectionEnabled(infos, canWebsocketS2S, canDirectS2S)) {
// Even better, we can do a proper S2S connection!