diff --git a/app/channels/room_channel.rb b/app/channels/room_channel.rb index 0680f1458..e102bc162 100644 --- a/app/channels/room_channel.rb +++ b/app/channels/room_channel.rb @@ -2,7 +2,7 @@ class RoomChannel < ApplicationCable::Channel def subscribed # TODO: should we only do ensure stream if current account is present? # for now going ahead with guard clauses in update_subscription and broadcast_presence - + log_params ensure_stream current_user current_account @@ -10,6 +10,10 @@ class RoomChannel < ApplicationCable::Channel broadcast_presence end + def log_params + Rails.logger.info("update_presence: #{params.inspect}") + end + def update_presence update_subscription broadcast_presence