Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Etherpad on join (#8212)

James E. Blairbab2b0735c58
diff --git a/config.js b/config.js
index a34ec0ed44..1865e2c539 100644
--- a/config.js
+++ b/config.js
@@ -367,6 +367,13 @@ var config = {
// When 'true', it shows an intermediate page before joining, where the user can configure their devices.
// prejoinPageEnabled: false,
+ // If etherpad integration is enabled, setting this to true will
+ // automatically open the etherpad when a participant joins. This
+ // does not affect the mobile app since opening an etherpad
+ // obscures the conference controls -- it's better to let users
+ // choose to open the pad on their own in that case.
+ // openSharedDocumentOnJoin: false,
+
// If true, shows the unsafe room name warning label when a room name is
// deemed unsafe (due to the simplicity in the name) and a password is not
// set or the lobby is not enabled.
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index bc48b795a6..08e3eb57c1 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -221,6 +221,10 @@ UI.initEtherpad = name => {
const url = new URL(name, config.etherpad_base);
APP.store.dispatch(setDocumentUrl(url.toString()));
+
+ if (config.openSharedDocumentOnJoin) {
+ etherpadManager.toggleEtherpad();
+ }
};
/**
diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js
index 40800ab372..de13119b90 100644
--- a/react/features/base/config/configWhitelist.js
+++ b/react/features/base/config/configWhitelist.js
@@ -129,6 +129,7 @@ export default [
'localRecording',
'maxFullResolutionParticipants',
'openBridgeChannel',
+ 'openSharedDocumentOnJoin',
'opusMaxAverageBitrate',
'p2p',
'pcStatsInterval',