Skip to content
Snippets Groups Projects
Commit 8908657b authored by Brandon Kish's avatar Brandon Kish
Browse files

Rename custom_record to custom_bbb_record and override welcome message when appropriate

I'm re-applying this code after reviewing the 0.1.1 version of bbb-lti. From my testing, an LTI's custom welcome message is currently being ignored.
parent 091ba72f
No related branches found
No related tags found
No related merge requests found
......@@ -235,6 +235,12 @@ class ToolController {
log.debug "Locale has been set to " + locale
String welcome = message(code: "bigbluebutton.welcome", args: ["\"{0}\"", "\"{1}\""])
log.debug "Localized default welcome message: [" + welcome + "]"
// Check for [custom_]welcome parameter being passed from the LTI
if (params.get(Parameter.CUSTOM_BBB_WELCOME) != null) {
welcome = params.get(Parameter.CUSTOM_BBB_WELCOME)
log.debug "Overriding default welcome message with: [" + welcome + "]"
}
String destinationURL = bigbluebuttonService.getJoinURL(params, welcome, ltiService.mode)
log.debug "redirecting to " + destinationURL
......
......@@ -52,7 +52,7 @@ public class Parameter {
public static final String CUSTOM_BBB_RECORD = "custom_bbb_record";
public static final String CUSTOM_BBB_VOICEBRIDGE = "custom_bbb_voicebridge";
public static final String CUSTOM_BBB_DURATION = "custom_bbb_duration";
public static final String CUSTOM_WELCOME = "custom_bbb_welcome";
public static final String CUSTOM_BBB_WELCOME = "custom_bbb_welcome";
///BigBlueButton internal parameters
public static final String BBB_RECORDING_ID = "bbb_recording_id";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment