diff --git a/app/presenters/conversations/event_data_presenter.rb b/app/presenters/conversations/event_data_presenter.rb index b4a443f35..9f3b1dced 100644 --- a/app/presenters/conversations/event_data_presenter.rb +++ b/app/presenters/conversations/event_data_presenter.rb @@ -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 diff --git a/spec/models/conversation_spec.rb b/spec/models/conversation_spec.rb index 67a6c7c83..555957e77 100644 --- a/spec/models/conversation_spec.rb +++ b/spec/models/conversation_spec.rb @@ -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 diff --git a/spec/presenters/conversations/event_data_presenter_spec.rb b/spec/presenters/conversations/event_data_presenter_spec.rb index 88cd89f0a..b22057435 100644 --- a/spec/presenters/conversations/event_data_presenter_spec.rb +++ b/spec/presenters/conversations/event_data_presenter_spec.rb @@ -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