Disables widget user message broadcast (#14)
This commit is contained in:
parent
2c144d5ad3
commit
2a335df49c
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue