7718cf7d2c
* feat: Search messages by content * Fix search UI * Add specs * chore: Filter search results * Update highlight logic * Rename query to searchTerm Co-authored-by: Sojan <sojan@pepalo.com>
17 lines
513 B
Ruby
17 lines
513 B
Ruby
json.meta do
|
|
json.mine_count @conversations_count[:mine_count]
|
|
json.unassigned_count @conversations_count[:unassigned_count]
|
|
json.all_count @conversations_count[:all_count]
|
|
end
|
|
json.payload do
|
|
json.array! @conversations do |conversation|
|
|
json.id conversation.display_id
|
|
json.messages do
|
|
json.array! conversation.messages do |message|
|
|
json.content message.content
|
|
json.created_at message.created_at.to_i
|
|
end
|
|
end
|
|
json.account_id conversation.account_id
|
|
end
|
|
end
|