Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rename custom_record to custom_bbb_record and override welcome messag…

…e 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.
  • Loading branch information...
commit 8908657b6850afc11c610d787e26bd6d3abe53ab 1 parent 091ba72
Brandon Kish kishba authored
6 bbb-lti/grails-app/controllers/ToolController.groovy
@@ -235,6 +235,12 @@ class ToolController {
235 235 log.debug "Locale has been set to " + locale
236 236 String welcome = message(code: "bigbluebutton.welcome", args: ["\"{0}\"", "\"{1}\""])
237 237 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 + }
238 244
239 245 String destinationURL = bigbluebuttonService.getJoinURL(params, welcome, ltiService.mode)
240 246 log.debug "redirecting to " + destinationURL
2  bbb-lti/src/java/org/bigbluebutton/lti/Parameter.java
@@ -52,7 +52,7 @@
52 52 public static final String CUSTOM_BBB_RECORD = "custom_bbb_record";
53 53 public static final String CUSTOM_BBB_VOICEBRIDGE = "custom_bbb_voicebridge";
54 54 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";
56 56
57 57 ///BigBlueButton internal parameters
58 58 public static final String BBB_RECORDING_ID = "bbb_recording_id";

0 comments on commit 8908657

Please sign in to comment.
Something went wrong with that request. Please try again.