[X] I have tested my contribution on these devices:
Virtual Android 9, API 28
Virtual Android 14, API 34
[X] My contribution is fully baked and ready to be merged as is
[X] I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234syntax
Description
The delivery status of messages sent to a community (only) were not getting marked as "Sent" and instead remained in a permanent "Sending" state. This was due to community servers modifying the message timestamps, which resulted in us being unable to find the local copy of the message by timestamp to tick the delivery status over to "Sent".
This PR provides an additional two methods to the Storage class: markAsSentToCommunity and markUnidentifiedInCommunity - which identify the message sent to the community without using timestamps for the lookup, which then allows us to finally set the "Sent" status on messages when they have been successfully delivered.
Contributor checklist
Fixes #1234
syntaxDescription
The delivery status of messages sent to a community (only) were not getting marked as "Sent" and instead remained in a permanent "Sending" state. This was due to community servers modifying the message timestamps, which resulted in us being unable to find the local copy of the message by timestamp to tick the delivery status over to "Sent".
This PR provides an additional two methods to the Storage class:
markAsSentToCommunity
andmarkUnidentifiedInCommunity
- which identify the message sent to the community without using timestamps for the lookup, which then allows us to finally set the "Sent" status on messages when they have been successfully delivered.