fix recording update channel and routes

This commit is contained in:
Zachary Chai
2017-01-31 11:42:47 -05:00
parent c70ad42d8b
commit 9667e3757b
4 changed files with 33 additions and 15 deletions

View File

@ -16,6 +16,11 @@
class RecordingUpdatesChannel < ApplicationCable::Channel
def subscribed
stream_from "#{params[:encrypted_id]}_recording_updates_channel"
full_id = if params[:meeting_id].present?
"#{params[:admin_id]}-#{params[:meeting_id]}"
else
params[:admin_id]
end
stream_from "#{full_id}_recording_updates_channel"
end
end