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

Replace Matrix.getKeyBackupEnabled by MatrixClient.CryptoApi.getActiveSessionBackupVersion #28225

Conversation

florianduros
Copy link
Member

@florianduros florianduros commented Oct 17, 2024

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

Task #26922

  • Matrix.getKeyBackupEnabled is synchronous and MatrixClient.CryptoApi.getActiveSessionBackupVersion si asynchronous. The component is fairly trivial and it was a good opportunity to migrate it to a functional component to handle easily the asynchronous.
  • The newVersionInfo props wasn't used in the component so I removed it.

@florianduros florianduros added the T-Task Tasks for the team like planning label Oct 17, 2024
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/remove-keybackup-enabled branch 2 times, most recently from 3c83dde to 2030b68 Compare October 17, 2024 14:22
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/remove-keybackup-enabled branch from 2030b68 to a02d1f2 Compare October 17, 2024 15:33
@florianduros florianduros marked this pull request as ready for review October 17, 2024 15:52
@florianduros florianduros requested review from a team as code owners October 17, 2024 15:52
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

Looks good, but I would request more detailed commit messages, giving a small amount of information about what the changes are, and why they are useful. Thanks!

… `MatrixClient.CryptoApi.getActiveSessionBackupVersion` in `NewRecoveryMethodDialog`.

Rewrite `NewRecoveryMethodDialog` into a functional component to make it easier to handle the new async method.
… `MatrixClient.CryptoApi.getActiveSessionBackupVersion` in `MatrixChat`.
@florianduros florianduros force-pushed the florianduros/rip-out-legacy-crypto/remove-keybackup-enabled branch from a02d1f2 to 2d95a09 Compare October 18, 2024 09:30
@florianduros florianduros added this pull request to the merge queue Oct 18, 2024
Merged via the queue into develop with commit 1bb482f Oct 18, 2024
32 checks passed
@florianduros florianduros deleted the florianduros/rip-out-legacy-crypto/remove-keybackup-enabled branch October 18, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants