chore: Add custom attributes in conversation webhook payload (#3839)
This commit is contained in:
@@ -10,6 +10,7 @@ class Conversations::EventDataPresenter < SimpleDelegator
|
||||
messages: push_messages,
|
||||
meta: push_meta,
|
||||
status: status,
|
||||
custom_attributes: custom_attributes,
|
||||
snoozed_until: snoozed_until,
|
||||
unread_count: unread_incoming_messages.count,
|
||||
**push_timestamps
|
||||
|
||||
@@ -386,6 +386,7 @@ RSpec.describe Conversation, type: :model do
|
||||
can_reply: true,
|
||||
channel: 'Channel::WebWidget',
|
||||
snoozed_until: conversation.snoozed_until,
|
||||
custom_attributes: conversation.custom_attributes,
|
||||
contact_last_seen_at: conversation.contact_last_seen_at.to_i,
|
||||
agent_last_seen_at: conversation.agent_last_seen_at.to_i,
|
||||
unread_count: 0
|
||||
|
||||
@@ -24,6 +24,7 @@ RSpec.describe Conversations::EventDataPresenter do
|
||||
channel: conversation.inbox.channel_type,
|
||||
timestamp: conversation.last_activity_at.to_i,
|
||||
snoozed_until: conversation.snoozed_until,
|
||||
custom_attributes: conversation.custom_attributes,
|
||||
contact_last_seen_at: conversation.contact_last_seen_at.to_i,
|
||||
agent_last_seen_at: conversation.agent_last_seen_at.to_i,
|
||||
unread_count: 0
|
||||
|
||||
Reference in New Issue
Block a user