element-hq / element-hq/element-android
Re-sending a message when server was offline doesn't work properly
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- PR merge metrics
- No merged PRs in 30d
Description
### Steps to reproduce
1. Homeserver was offline for several hours (10h)
2. User1 tries to send a message to DM with User2 meanwhile, message is queued and device of User1 goes to sleep
3. Homeserver goes online after few hours
4. After next 12 hours device of User1 goes online and message is sent to User2
5. User2 receives that message and cannot decrypt it in Web or Android, usual message `** Unable to decrypt: The sender's device has not sent us the keys for this message. **`
6. After few retries to re-send the key from Web, it shows `** Unable to decrypt: decryption key withheld **`
7. Dead end for the message.
8. Another messaging between User1 and User2 in an encrypted DM works properly.
### Outcome
#### What did you expect?
Key of that message has to be resend properly, when server goes online again.
#### What happened instead?
No decryption key was re-send.
### Your phone model
Samsung Galaxy S20 FE
### Operating system version
Android 12
### Application version and app store
Element: 1.5.4
### Homeserver
self hosted Synapse 1.70.1
### Will you send logs?
Yes, tagged with issue number
### Are you willing to provide a PR?
No
Contributor guide
Assessment
This issue has not been assessed yet.