element-hq / element-hq/element-meta
Provide feedback to sender when a recipient failed to decrypt a message
@amshakal is already working on this.
Since Jan 24, 2022.
- Dominant language
- No language data
- Stars
- 112
- Forks
- 26
- Avg merge
- 6h 6m
- Merged PRs (30d)
- 4
Description
Inspiration
When the moderation bot can't decrypt a message sent to him in a room will react to the message with a dedicated emoji 🚨.
This is a precious indicator for the sender as it's the only way for him to know if something went wrong
Proposal
Use the same idea to provide a UI feedback to users when someone did fail to decrypt a message in a room (as a decoration per message or more global indicator).
More than a simple indicator this could be a great place to plug some usefull call to actions:
- Send a bug report
- Re-share key to the sender
Technical input
Such problems could be detected when a key_request is received for the megolm session of this message.
Some difficulties
The weight of the feedback should be different in for example a DM vs a large room (where key request are very likely to happen).
Also the key requests are async and transient:
- You may have the
recipient failed to decryptinfo long after sending the message - The recipient could send a request and then cancel it a few second after because he got the key from another session (we should avoid having a flickering effect by quickly showing hiding feedback).
And as always some filtering should be done to discard evil unexpected requests
Dev task
- Web https://github.com/vector-im/element-web/issues/21906
- iOS
- Android
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.