mirror of
https://github.com/ushahidi/SMSSync.git
synced 2026-04-25 07:45:53 +03:00
[GH-ISSUE #422] Messages are marked as SENT when delivery fails #298
Labels
No labels
Bug report
Code improvement
Concern
Feature request
Feature request
Good first issue to work on
In progress
Needs info
Question
Ready
Translation
User Experience
User Experience
Website
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SMSSync#298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alxndrsn on GitHub (Apr 8, 2016).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/422
In
SmsDeliveredReceiver, message delivery is checked by examining the result ofBroadcastReceiver.getResultCode():github.com/ushahidi/SMSSync@a1f2224bbb/smssync/src/main/java/org/addhen/smssync/presentation/receiver/SmsDeliveredReceiver.java (L40)Following that, a toast and log message are triggered indicating whether the message was delivered or not.
However, in the code following, all messages have their
statusset toSENT. From looking atMessageModel.Status, it looks like theFAILEDstatus would be more appropriate when the value ofresultisActivity.RESULT_CANCELED.