2019-10-29 07:20:54 +00:00
|
|
|
json.array! @messages do |message|
|
|
|
|
json.id message.id
|
|
|
|
json.content message.content
|
|
|
|
json.message_type message.message_type_before_type_cast
|
2020-01-09 07:36:40 +00:00
|
|
|
json.content_type message.content_type
|
|
|
|
json.content_attributes message.content_attributes
|
2019-10-29 07:20:54 +00:00
|
|
|
json.created_at message.created_at.to_i
|
2020-04-02 06:58:38 +00:00
|
|
|
json.conversation_id message.conversation.display_id
|
2020-04-17 15:45:20 +00:00
|
|
|
json.attachments message.attachments.map(&:push_event_data) if message.attachments.present?
|
2020-06-27 16:04:53 +00:00
|
|
|
json.sender message.sender.push_event_data if message.sender
|
2019-10-29 07:20:54 +00:00
|
|
|
end
|