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
|
2019-10-29 07:20:54 +00:00
|
|
|
json.attachment message.attachment.push_event_data if message.attachment
|
2019-11-27 04:42:57 +00:00
|
|
|
json.sender message.user.push_event_data if message.user
|
2019-10-29 07:20:54 +00:00
|
|
|
end
|