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

Refactor CreateCrossSigningDialog #28218

Merged
merged 12 commits into from
Oct 22, 2024
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Oct 17, 2024

  • Converts CreateCrossSigningDialog to a functional component
  • Pulls logic out to its own class
  • Updates usage of deprecated cross signing bootstrap method on client to be on the crypto object and updates test to match

Moved from element-hq/matrix-react-sdk#131

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)

 * Converts CreateCrossSigningDialog to a functional component
 * Pulls logic out to its own class
 * Updates usage of deprecated cross signing bootstrap method on client to be on the crypto object and updates test to match

Moved from element-hq/matrix-react-sdk#131
@dbkr dbkr added the T-Task Tasks for the team like planning label Oct 17, 2024
src/CreateCrossSigning.ts Show resolved Hide resolved
src/CreateCrossSigning.ts Show resolved Hide resolved
Comment on lines 139 to 140
getActiveSessionBackupVersion: jest.fn().mockResolvedValue(null),
globalBlacklistUnverifiedDevices: false,
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to move theses two functions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, we both added them and I probably accepted the wrong set of changes when merging.

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 from a crypto pov

src/CreateCrossSigning.ts Outdated Show resolved Hide resolved
@andybalaam andybalaam removed the request for review from BillCarsonFr October 22, 2024 10:08
Co-authored-by: Andy Balaam <[email protected]>
@dbkr dbkr added this pull request to the merge queue Oct 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@dbkr dbkr added this pull request to the merge queue Oct 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@dbkr dbkr added this pull request to the merge queue Oct 22, 2024
Merged via the queue into develop with commit 19ef326 Oct 22, 2024
32 checks passed
@dbkr dbkr deleted the dbkr/refactor_createcrosssigningdialog branch October 22, 2024 11:59
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.

3 participants