These changes ensure that a notification's "status reason" is always the empty string when the status is "delivered."
The underlying ticket cited a problem without an explicit way to reproduce it, so I went looking for problems. These changes cover all code paths as far as I can tell without a specific problem to fix.
issue #2011
How Has This Been Tested?
This is not easy to test because I don't know how to force providers to return a particular status. I'm relying heavily on unit tests.
[x] new and modified unit tests pass
[x] Send myself a text message, reply with STOP, and see that the status reason of the delivered message isn't overwritten with the "opted-out" blurb. See the full documentation of my testing here.
Description
These changes ensure that a notification's "status reason" is always the empty string when the status is "delivered."
The underlying ticket cited a problem without an explicit way to reproduce it, so I went looking for problems. These changes cover all code paths as far as I can tell without a specific problem to fix.
issue #2011
How Has This Been Tested?
This is not easy to test because I don't know how to force providers to return a particular status. I'm relying heavily on unit tests.
Checklist