Skip to content

Commit

Permalink
fix: Update browser_language logic to include all languages (#5090)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrajs committed Jul 22, 2022
1 parent 6a6a37a commit 32291f4
Show file tree
Hide file tree
Showing 6 changed files with 688 additions and 56 deletions.
5 changes: 3 additions & 2 deletions app/controllers/api/v1/widget/base_controller.rb
Expand Up @@ -36,9 +36,10 @@ def conversation_params
contact_id: @contact.id,
contact_inbox_id: @contact_inbox.id,
additional_attributes: {
browser_language: browser.accept_language&.first&.code,
browser: browser_params,
referer: permitted_params[:message][:referer_url],
initiated_at: timestamp_params
initiated_at: timestamp_params,
referer: permitted_params[:message][:referer_url]
},
custom_attributes: permitted_params[:custom_attributes].presence || {}
}
Expand Down

0 comments on commit 32291f4

Please sign in to comment.