fix: Dig params in widget contact end point (#4516)

This commit is contained in:
Muhsin Keloth
2022-04-21 20:39:45 +05:30
committed by GitHub
parent bd0ed322cc
commit b082b0e58c
5 changed files with 6 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ class MessageTemplates::HookExecutionService
# TODO: we should be able to reduce this logic once we have a toggle for email collect messages
def should_send_email_collect?
!contact_has_email? && inbox.web_widget? && !inbox.channel.pre_chat_form_enabled? && !email_collect_was_sent?
!contact_has_email? && inbox.web_widget? && !email_collect_was_sent?
end
def contact_has_email?