Merge branch 'hotfix/1.22.1' into develop
# Conflicts: # db/schema.rb
This commit is contained in:
@@ -13,6 +13,7 @@ json.meta do
|
||||
json.partial! 'api/v1/models/team.json.jbuilder', resource: conversation.team
|
||||
end
|
||||
end
|
||||
json.hmac_verified conversation.contact_inbox&.hmac_verified
|
||||
end
|
||||
|
||||
json.id conversation.display_id
|
||||
|
||||
@@ -22,7 +22,7 @@ json.chatwoot_widget_defaults do
|
||||
json.use_inbox_avatar_for_bot ActiveModel::Type::Boolean.new.cast(ENV.fetch('USE_INBOX_AVATAR_FOR_BOT', false))
|
||||
end
|
||||
json.contact do
|
||||
json.pubsub_token @contact.pubsub_token
|
||||
json.pubsub_token @contact_inbox.pubsub_token
|
||||
end
|
||||
json.auth_token @token
|
||||
json.global_config @global_config
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
json.source_id @contact_inbox.source_id
|
||||
json.pubsub_token @contact_inbox.pubsub_token
|
||||
json.partial! 'public/api/v1/models/contact.json.jbuilder', resource: @contact_inbox.contact
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
json.source_id @contact_inbox.source_id
|
||||
json.pubsub_token @contact_inbox.pubsub_token
|
||||
json.partial! 'public/api/v1/models/contact.json.jbuilder', resource: @contact_inbox.contact
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
json.source_id @contact_inbox.source_id
|
||||
json.pubsub_token @contact_inbox.pubsub_token
|
||||
json.partial! 'public/api/v1/models/contact.json.jbuilder', resource: @contact_inbox.contact
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
json.id resource.id
|
||||
json.name resource.name
|
||||
json.email resource.email
|
||||
json.pubsub_token resource.pubsub_token
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
window.chatwootWidgetDefaults = {
|
||||
useInboxAvatarForBot: <%= ActiveModel::Type::Boolean.new.cast(ENV.fetch('USE_INBOX_AVATAR_FOR_BOT', false)) %>,
|
||||
}
|
||||
window.chatwootPubsubToken = '<%= @contact.pubsub_token %>'
|
||||
window.chatwootPubsubToken = '<%= @contact_inbox.pubsub_token %>'
|
||||
window.authToken = '<%= @token %>'
|
||||
window.globalConfig = <%= raw @global_config.to_json %>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user