diff --git a/app/assets/javascripts/channels/recording_update.js b/app/assets/javascripts/channels/recording_update.js index eb8a93c4..ef76834a 100644 --- a/app/assets/javascripts/channels/recording_update.js +++ b/app/assets/javascripts/channels/recording_update.js @@ -47,9 +47,7 @@ } else if (data.action === 'create') { if (row.length == 0) { - data.duration = data.length; - table.rows.add([data]); - recordings.draw(); + recordings.refresh(); showAlert(I18n.recording_created, 4000); } diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index d2710d61..f4e288eb 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -20,6 +20,9 @@ class NotificationMailer < ActionMailer::Base def recording_ready_email(user) @user = user @room_url = meeting_room_url(resource: 'rooms', id: user.encrypted_id) + unless @room_url.include? "#{Rails.configuration.relative_url_root}/" + @room_url = @room_url.split('/rooms/').join("#{Rails.configuration.relative_url_root}/rooms/") + end mail(to: user.email, subject: t('.subject')) end end