chore: Move Facebook event processing to worker (#2988)

This commit is contained in:
Sojan Jose
2021-09-13 18:05:14 +05:30
committed by GitHub
parent 26a3150fd8
commit 328edd24de
7 changed files with 56 additions and 21 deletions

View File

@@ -22,6 +22,7 @@ class Integrations::Facebook::MessageCreator
private
def agent_message_via_echo?
# TODO : check and remove send_from_chatwoot_app if not working
response.echo? && !response.sent_from_chatwoot_app?
# this means that it is an agent message from page, but not sent from chatwoot.
# User can send from fb page directly on mobile / web messenger, so this case should be handled as agent message