-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle unsuccessful deliveries (#2077)
Fixes #2076 ### What changed and Why This PR extends the same feature we had with Twilio to 360dialog, we: * Look out for statuses that show failed message delivery that have an error code of 131_026, which indicates that we cannot message this recipient for one of several reasons. See issue for a list of them from Meta. * When we get this error, we mark the contributor as inactive since we cannot send them any messages, * Then, we create a notification to make this visible to the users * Also, we add some text on the contributor show page with this information ☝️ ... This is all an attempt to not silently treat these issues. We want to bring visibility to who we know cannot receive messages and allow the clients to decide if they would like to work with the contributor to resolve the issue.
- Loading branch information
Showing
3 changed files
with
101 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters