2019-08-14 09:48:44 +00:00
|
|
|
json.id @message.id
|
|
|
|
json.content @message.content
|
|
|
|
json.inbox_id @message.inbox_id
|
2020-04-10 11:12:37 +00:00
|
|
|
json.conversation_id @message.conversation.display_id
|
2019-08-14 09:48:44 +00:00
|
|
|
json.message_type @message.message_type_before_type_cast
|
2020-04-10 11:12:37 +00:00
|
|
|
json.content_type @message.content_type
|
|
|
|
json.content_attributes @message.content_attributes
|
2019-08-14 09:48:44 +00:00
|
|
|
json.created_at @message.created_at.to_i
|
|
|
|
json.private @message.private
|
2020-06-27 16:04:53 +00:00
|
|
|
json.sender @message.sender.push_event_data
|
2020-04-17 15:45:20 +00:00
|
|
|
json.attachments @message.attachments.map(&:push_event_data) if @message.attachments.present?
|