feat: do not send contact details to the widget (#9223)
* refactor: use has_email instead of email * feat: remove usage of details directly in forms * test: update payload * test: fix transcript test * refactor: use computed hasEmail --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
json.id @contact.id
|
||||
json.name @contact.name
|
||||
json.email @contact.email
|
||||
json.phone_number @contact.phone_number
|
||||
json.has_email @contact.email.present?
|
||||
json.has_name @contact.name.present?
|
||||
json.has_phone_number @contact.phone_number.present?
|
||||
json.widget_auth_token @widget_auth_token if @widget_auth_token.present?
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
json.id @contact.id
|
||||
json.name @contact.name
|
||||
json.email @contact.email
|
||||
json.phone_number @contact.phone_number
|
||||
json.has_email @contact.email.present?
|
||||
json.has_name @contact.name.present?
|
||||
json.has_phone_number @contact.phone_number.present?
|
||||
json.identifier @contact.identifier
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
json.id @contact.id
|
||||
json.name @contact.name
|
||||
json.email @contact.email
|
||||
json.phone_number @contact.phone_number
|
||||
json.has_email @contact.email.present?
|
||||
json.has_name @contact.name.present?
|
||||
json.has_phone_number @contact.phone_number.present?
|
||||
|
||||
Reference in New Issue
Block a user