forked from External/greenlight
Send an email to the user when a recording is done processing
Had to add an email attribute to users to store their email to send the notification. Will only send it for user rooms since they are the only ones we know who to notify.
This commit is contained in:
@ -77,13 +77,12 @@ module BbbApi
|
||||
"meta_#{BbbApi::META_LISTED}": false,
|
||||
"meta_#{BbbApi::META_TOKEN}": meeting_token
|
||||
}
|
||||
meeting_options.merge!(
|
||||
{ "meta_#{BbbApi::META_HOOK_URL}": options[:hook_url] }
|
||||
) if options[:hook_url]
|
||||
|
||||
if ENV['GREENLIGHT_USE_WEBHOOKS']
|
||||
if Rails.configuration.use_webhooks
|
||||
webhook_register(options[:hook_url], meeting_id)
|
||||
else
|
||||
meeting_options.merge!(
|
||||
{ "meta_#{BbbApi::META_HOOK_URL}": options[:hook_url] }
|
||||
) if options[:hook_url]
|
||||
end
|
||||
|
||||
# Create the meeting
|
||||
|
Reference in New Issue
Block a user