Skip to content
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

Fix backed-up keys being re-backed-up #121

Merged
merged 3 commits into from
May 24, 2024
Merged

Fix backed-up keys being re-backed-up #121

merged 3 commits into from
May 24, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented May 23, 2024

Bump to a version of the rust SDK that includes matrix-org/matrix-rust-sdk#3448 and matrix-org/matrix-rust-sdk#3456, to fix matrix-org/matrix-rust-sdk#3447.

Also, pass the backup version into import_backed_up_room_keys to avoid using the deprecated method on BackupMachine.

@richvdh richvdh requested a review from a team as a code owner May 23, 2024 17:49
@richvdh richvdh requested a review from bnjbvr May 23, 2024 17:49
Comment on lines -1452 to -1454
// outgoingRequests will have a KeysUploadRequest before the
// KeysQueryRequest, so we grab the device upload and put it in the
// response to the /keys/query
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test didn't work any more after the rust-sdk upgrade, due to matrix-org/matrix-rust-sdk#3442: the response no longer triggered a device update notification. Hence, we now feed the device from a second OlmMachine in.

@poljar poljar removed the request for review from bnjbvr May 23, 2024 18:02
@richvdh richvdh merged commit 5470581 into main May 24, 2024
3 checks passed
@richvdh richvdh deleted the rav/fix_backup_import branch May 24, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When using the in-memory crypto store, keys restored from backup are re-uploaded to backup
2 participants