From 726fd3f8a1d3184454e92aa050b51cfd01667ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 17 Jan 2023 15:06:18 +0100 Subject: [PATCH] fix(config,debian) fix multistream backwards compatibility Fixes: https://github.com/jitsi/jitsi-meet/issues/12788 --- config.js | 6 ++++++ debian/jitsi-meet-web-config.postinst | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 3a500d93e..c30a1c96b 100644 --- a/config.js +++ b/config.js @@ -1544,6 +1544,12 @@ var config = { // }, }; +// Temporary backwards compatibility with old mobile clients. +config.flags = config.flags || {}; +config.flags.sourceNameSignaling = true; +config.flags.sendMultipleVideoStreams = true; +config.flags.receiveMultipleVideoStreams = true; + // Set the default values for JaaS customers if (enableJaaS) { config.dialInNumbersUrl = 'https://conference-mapper.jitsi.net/v1/access/dids'; diff --git a/debian/jitsi-meet-web-config.postinst b/debian/jitsi-meet-web-config.postinst index 1083fc9d2..4c5df7c1c 100644 --- a/debian/jitsi-meet-web-config.postinst +++ b/debian/jitsi-meet-web-config.postinst @@ -176,9 +176,10 @@ case "$1" in fi # Fixes multi-stream flags to workaround problem with mobile joining a multi-stream call with multi-stream disabled - FIX_MSG="//Enables multi-stream, do not delete me" + FIX_MSG="// Temporary backwards compatibility with old mobile clients." if ! grep -q "^${FIX_MSG}" $JITSI_MEET_CONFIG; then - sed -i "s#config.flags.sourceNameSignaling#${FIX_MSG}\nconfig.flags = config.flags || {};\nconfig.flags.sourceNameSignaling#g" $JITSI_MEET_CONFIG + echo $FIX_MSG >> $JITSI_MEET_CONFIG + echo "config.flags = config.flags || {};" >> $JITSI_MEET_CONFIG fi if ! grep -q "^config.flags.sourceNameSignaling*" $JITSI_MEET_CONFIG; then echo "config.flags.sourceNameSignaling = true;" >> $JITSI_MEET_CONFIG