Skip to content

Commit 1e30776

Browse files
committed
Merge pull request bigbluebutton#107 from kishba/fix-lti-custom-welcome-message
Fixes LTI custom welcome message for bbb-lti 0.1.1
2 parents 956242d + 8908657 commit 1e30776

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

bbb-lti/grails-app/controllers/ToolController.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ class ToolController {
235235
log.debug "Locale has been set to " + locale
236236
String welcome = message(code: "bigbluebutton.welcome", args: ["\"{0}\"", "\"{1}\""])
237237
log.debug "Localized default welcome message: [" + welcome + "]"
238+
239+
// Check for [custom_]welcome parameter being passed from the LTI
240+
if (params.get(Parameter.CUSTOM_BBB_WELCOME) != null) {
241+
welcome = params.get(Parameter.CUSTOM_BBB_WELCOME)
242+
log.debug "Overriding default welcome message with: [" + welcome + "]"
243+
}
238244

239245
String destinationURL = bigbluebuttonService.getJoinURL(params, welcome, ltiService.mode)
240246
log.debug "redirecting to " + destinationURL

bbb-lti/src/java/org/bigbluebutton/lti/Parameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class Parameter {
5252
public static final String CUSTOM_BBB_RECORD = "custom_bbb_record";
5353
public static final String CUSTOM_BBB_VOICEBRIDGE = "custom_bbb_voicebridge";
5454
public static final String CUSTOM_BBB_DURATION = "custom_bbb_duration";
55-
public static final String CUSTOM_WELCOME = "custom_bbb_welcome";
55+
public static final String CUSTOM_BBB_WELCOME = "custom_bbb_welcome";
5656

5757
///BigBlueButton internal parameters
5858
public static final String BBB_RECORDING_ID = "bbb_recording_id";

0 commit comments

Comments
 (0)