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
|
|
|
|
json.attachment @message.attachment.push_event_data if @message.attachment
|