fix: Cherry-pick Nheko device verification fix #1300
No reviewers
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1300
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nex/fix/1299"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR cherry-picks the fix in
github.com/matrix-construct/tuwunel@1f803fe3a9, which fixes Nheko sessions un-verifying themselves.Fixes: #1299
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
I'm going to assume this is fine and being unable to replace with equal json in a different order won't cause issues, but this behavior should only be encountered by buggy client anyway so
@ -91,8 +91,11 @@ pub(crate) async fn upload_keys_route(.users.get_device_keys(sender_user, sender_device).await.and_then(|keys| keys.deserialize().map_err(Into::into))should always be valid JSON because of the if-let above applying to future values of this