feat: Redesigned search UI (#1845)

This commit is contained in:
Sivin Varghese
2021-03-15 18:38:05 +05:30
committed by GitHub
parent c99c63cd79
commit 36f086c5cb
7 changed files with 591 additions and 215 deletions

View File

@@ -6,9 +6,22 @@ end
json.payload do
json.array! @conversations do |conversation|
json.id conversation.display_id
json.created_at conversation.created_at.to_i
json.contact do
json.id conversation.contact.id
json.name conversation.contact.name
end
json.inbox do
json.id conversation.inbox.id
json.name conversation.inbox.name
json.channel_type conversation.inbox.channel_type
end
json.messages do
json.array! conversation.messages do |message|
json.content message.content
json.id message.id
json.sender_name message.sender.name if message.sender
json.message_type message.message_type_before_type_cast
json.created_at message.created_at.to_i
end
end