fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated (#5560)
fixes the warning: Rendering actions with '.' in the name is deprecated
This commit is contained in:
committed by
GitHub
parent
cd4c1ef27e
commit
bd445216e9
@@ -1,16 +1,16 @@
|
||||
json.meta do
|
||||
json.sender do
|
||||
json.partial! 'api/v1/models/contact.json.jbuilder', resource: conversation.contact
|
||||
json.partial! 'api/v1/models/contact', formats: [:json], resource: conversation.contact
|
||||
end
|
||||
json.channel conversation.inbox.try(:channel_type)
|
||||
if conversation.assignee&.account
|
||||
json.assignee do
|
||||
json.partial! 'api/v1/models/agent.json.jbuilder', resource: conversation.assignee
|
||||
json.partial! 'api/v1/models/agent', formats: [:json], resource: conversation.assignee
|
||||
end
|
||||
end
|
||||
if conversation.team.present?
|
||||
json.team do
|
||||
json.partial! 'api/v1/models/team.json.jbuilder', resource: conversation.team
|
||||
json.partial! 'api/v1/models/team', formats: [:json], resource: conversation.team
|
||||
end
|
||||
end
|
||||
json.hmac_verified conversation.contact_inbox&.hmac_verified
|
||||
|
||||
Reference in New Issue
Block a user