You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are two types of hooks ..
account hooks -> inbox id should be nil .. works across the account (for example webhooks, slack etc )
inbox hooks -> inbox id is present, work in inbox scope, multiple ones can be present ( example Dialogflow )
the particular line of code is to skip the case where we are checking for an inbox hook, but the message event that was triggered doesn't belong to that inbox.
in the case of Dialogflow, the inbox id should be empty for the hook. hence that line of code shouldn't come into effect since hook.inbox = nil
The text was updated successfully, but these errors were encountered:
there are two types of hooks ..
account hooks -> inbox id should be nil .. works across the account (for example webhooks, slack etc )
inbox hooks -> inbox id is present, work in inbox scope, multiple ones can be present ( example Dialogflow )
https://github.com/chatwoot/chatwoot/blob/baf697f064bfdd8c691d1c2ee84fff8f8130a699/app/listeners/hook_listener.rb#L22
the particular line of code is to skip the case where we are checking for an inbox hook, but the message event that was triggered doesn't belong to that inbox.
in the case of Dialogflow, the inbox id should be empty for the hook. hence that line of code shouldn't come into effect since hook.inbox = nil
The text was updated successfully, but these errors were encountered: