-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update message sender trust status when user's verification state improves #3890
Comments
Note for prioritisation: the critical thing here is to make sure future messages do not have shields after we have withdrawn or re-done verification. Updating older messages is a nice to have. So maybe we can just do this during decryption instead of re-querying for old sessions. |
Note that we need to implement this even for messages that were sent by devices that have since been deleted. We have all the necessary information in the |
Other related scenario were updating a message trust status would be helpfull:
=> Open alice session again: Alice receives the new room_key for the new message. The embedded device_keys are not signed with the identity we have for Bob (it is signed by a not yet known identity) In the same sync cycle Bob is marked as dirty, so the a new keys/query is make (and that's only now that we learn about the new identity that signs the new device) Future messages will be fine though. Another thing to note is that other sessions that were online will get the identity update before the message is sent, so this same message will be decrypted fine on other sessions |
Follow up to #3544
If a user is in verification violation and then they become verified OR we withdraw verification (making them unverified), update their sessions so messages from them have the updated status.
Current situation
So in both cases, new messages are displayed correctly. This story is to fix old messages.
This may already be fine on Web, in which case this story is just to fix Element X.
Implementation
Allow querying inbound group sessions by master key (remember to populate even for Unverified sessions)
Update SenderData when an identity becomes verified or verification is withdrawn.
Notify the UI code that the message needs updating (maybe by re-running decryption, or just by updating the shields)
The text was updated successfully, but these errors were encountered: