Disables widget user message broadcast (#14)

This commit is contained in:
Subin T P 2019-08-21 20:09:59 +05:30 committed by Pranav Raj S
parent 2c144d5ad3
commit 2a335df49c

View file

@ -18,9 +18,10 @@ class PusherListener < BaseListener
conversation = message.conversation
members = conversation.inbox.members.pluck(:channel)
widget_user = conversation.sender.chat_channel
members = members << widget_user
# Pusher.trigger(members, MESSAGE_CREATED , message.push_event_data) if members.present?
# widget_user = conversation.sender.chat_channel
# members = members << widget_user
Pusher.trigger(members, MESSAGE_CREATED , message.push_event_data) if members.present?
end
def conversation_reopened(event)