From 8495777d5b7a6adeab1fa41c7faf3609c9c96aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Mon, 15 Jan 2024 11:59:40 -0300 Subject: [PATCH] feat: join param for default animations setting value --- .../api/users-settings/server/methods/addUserSettings.js | 1 + bigbluebutton-html5/imports/startup/client/base.jsx | 8 ++++++++ docs/docs/administration/customize.md | 1 + 3 files changed, 10 insertions(+) diff --git a/bigbluebutton-html5/imports/api/users-settings/server/methods/addUserSettings.js b/bigbluebutton-html5/imports/api/users-settings/server/methods/addUserSettings.js index 6cc08c7b97..31d7f8af73 100644 --- a/bigbluebutton-html5/imports/api/users-settings/server/methods/addUserSettings.js +++ b/bigbluebutton-html5/imports/api/users-settings/server/methods/addUserSettings.js @@ -36,6 +36,7 @@ const currentParameters = [ 'bbb_skip_check_audio_on_first_join', 'bbb_fullaudio_bridge', 'bbb_transparent_listen_only', + 'bbb_show_animations_default', // BRANDING 'bbb_display_branding_area', // SHORTCUTS diff --git a/bigbluebutton-html5/imports/startup/client/base.jsx b/bigbluebutton-html5/imports/startup/client/base.jsx index 2278909727..dfc1bd09ae 100755 --- a/bigbluebutton-html5/imports/startup/client/base.jsx +++ b/bigbluebutton-html5/imports/startup/client/base.jsx @@ -177,6 +177,14 @@ class Base extends Component { if (Session.equals('layoutReady', true) && (sidebarContentPanel === PANELS.NONE || Session.equals('subscriptionsReady', true))) { if (!checkedUserSettings) { + const showAnimationsDefault = getFromUserSettings( + 'bbb_show_animations_default', + Meteor.settings.public.app.defaultSettings.application.animations + ); + + Settings.application.animations = showAnimationsDefault; + Settings.save(); + if (getFromUserSettings('bbb_show_participants_on_login', Meteor.settings.public.layout.showParticipantsOnLogin) && !deviceInfo.isPhone) { if (isChatEnabled() && getFromUserSettings('bbb_show_public_chat_on_login', !Meteor.settings.public.chat.startClosed)) { layoutContextDispatch({ diff --git a/docs/docs/administration/customize.md b/docs/docs/administration/customize.md index fd956b5dff..044dee1027 100644 --- a/docs/docs/administration/customize.md +++ b/docs/docs/administration/customize.md @@ -1433,6 +1433,7 @@ Useful tools for development: | `userdata-bbb_override_default_locale=` | (Introduced in BigBlueButton 2.3) If set to `de`, the user's browser preference will be ignored - the client will be shown in 'de' (i.e. German) regardless of the otherwise preferred locale 'en' (or other) | `null` | | `userdata-bbb_hide_presentation_on_join` | (Introduced in BigBlueButton 2.6) If set to `true` it will make the user enter the meeting with presentation minimized (Only for non-presenters), not peremanent. | `false` | | `userdata-bbb_direct_leave_button` | (Introduced in BigBlueButton 2.7) If set to `true` it will make a button to leave the meeting appear to the left of the Options menu. | `false` | +| `userdata-bbb_show_animations_default` | (Introduced in BigBlueButton 2.7.4) If set to `false` the default value for the Animations toggle in Settings will be 'off' | `true` | #### Branding parameters