Skip to content

Commit 5638721

Browse files
committed
Read params from Session. TODO fix '++' and no-restricted-syntax
1 parent 7f0919c commit 5638721

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

bigbluebutton-html5/imports/ui/components/join-handler/component.jsx

+9
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@ class JoinHandler extends Component {
161161
const setCustomData = (resp) => {
162162
const { customdata } = resp;
163163

164+
// Can't figure out how to get the customdata out of
165+
// UserSettings. Giving up, shoving them into the session
166+
for (var i = 0; i < customdata.length; i++) {
167+
var urlparameter = customdata[i];
168+
for (const [key, value] of Object.entries(urlparameter)) {
169+
Session.set(key, value);
170+
}
171+
}
172+
164173
return new Promise((resolve) => {
165174
if (customdata.length) {
166175
makeCall('addUserSettings', customdata).then(r => resolve(r));

bigbluebutton-html5/imports/ui/components/matrix/component.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ class Matrix extends Component {
5656
).metadataProp;
5757

5858
const matrixRoomID = prop.metadata ? prop.metadata.matrixroomid : null;
59+
const urlemail = Session.get('mail');
60+
const urlregcode = Session.get('regcode');
5961

6062
const matrixtitle = `Matrix integration for ${Auth.confname}`;
61-
const matrixurl = `/riot-embedded/index.html?urlroomid=${matrixRoomID}&urluserid=${Auth.fullname}`;
63+
const matrixurl = `/riot-embedded/index.html?urlroomid=${matrixRoomID}&urlemail=${urlemail}&urlregcode=${urlregcode}`;
64+
6265
return (
6366
<div
6467
data-test="matrix"

0 commit comments

Comments
 (0)