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 conversation = message.conversation
members = conversation.inbox.members.pluck(:channel) members = conversation.inbox.members.pluck(:channel)
widget_user = conversation.sender.chat_channel # widget_user = conversation.sender.chat_channel
members = members << widget_user # members = members << widget_user
# Pusher.trigger(members, MESSAGE_CREATED , message.push_event_data) if members.present?
Pusher.trigger(members, MESSAGE_CREATED , message.push_event_data) if members.present?
end end
def conversation_reopened(event) def conversation_reopened(event)