medic / cht-gateway

Android SMS gateway app for CHT Applications
GNU Affero General Public License v3.0
84 stars 41 forks source link

142 mark messages received by gateway #166

Closed latin-panda closed 4 years ago

latin-panda commented 4 years ago

Description

This PR will set the SMS status as Needs Forwarding when updating statuses or when saving new SMS to Gateway DB. Then Gateway will notify the status change to API from the beginning, reducing the chance of API to resend the same SMS.

This PR is dependant of this one: https://github.com/medic/medic-gateway/pull/159

To AT: My test device at the moment is Android 9. Can you please test this in older Android version? Thanks!

https://github.com/medic/medic-gateway/issues/142

Code review items

License

The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.