feat: Use display_name instead of name of the agent (#1097)

* feat: Use display_name instead of name of the agent
This commit is contained in:
Pranav Raj S
2020-07-27 22:19:26 +05:30
committed by GitHub
parent f30c8943d9
commit 2b1d445003
21 changed files with 80 additions and 41 deletions

View File

@@ -3,7 +3,11 @@ json.meta do
json.partial! 'api/v1/models/contact.json.jbuilder', resource: conversation.contact
end
json.channel conversation.inbox.try(:channel_type)
json.assignee conversation.assignee
if conversation.assignee
json.assignee do
json.partial! 'api/v1/models/user.json.jbuilder', resource: conversation.assignee
end
end
end
json.id conversation.display_id