Skip to content

Commit 949b02b

Browse files
jejbrppt
authored andcommitted
html5: Add option to open Matrix chat at start of bbb
The chat panel had an option startClosed which you can set to false to start with an open chat panel. Add the same option to the matrix chat. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent c0654bb commit 949b02b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • bigbluebutton-html5/imports/startup/client

bigbluebutton-html5/imports/startup/client/base.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,19 @@ class Base extends Component {
203203
type: ACTIONS.SET_ID_CHAT_OPEN,
204204
value: PUBLIC_CHAT_ID,
205205
});
206+
} else if (getFromUserSettings('bbb_show_public_chat_on_login', !Meteor.settings.public.matrix.startClosed)) {
207+
layoutContextDispatch({
208+
type: ACTIONS.SET_SIDEBAR_NAVIGATION_IS_OPEN,
209+
value: true,
210+
});
211+
layoutContextDispatch({
212+
type: ACTIONS.SET_SIDEBAR_CONTENT_IS_OPEN,
213+
value: true,
214+
});
215+
layoutContextDispatch({
216+
type: ACTIONS.SET_SIDEBAR_CONTENT_PANEL,
217+
value: PANELS.MATRIX,
218+
});
206219
} else {
207220
layoutContextDispatch({
208221
type: ACTIONS.SET_SIDEBAR_NAVIGATION_IS_OPEN,

0 commit comments

Comments
 (0)