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

New CryptoApi.getDeviceVerificationStatus api #3287

Merged
merged 8 commits into from
Apr 18, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Apr 14, 2023

Define a new endpoint to replace the existing checkDeviceTrust which is awkward to implement in rust.

Review commit-by-commit.

Based on #3281.

Part of element-hq/element-web#25092.


This change is marked as an internal change (Task), so will not be included in the changelog.

richvdh added 3 commits April 13, 2023 15:55
Define a new base class to replace `DeviceTrustLevel`. The intention is to have
a cleaner interface which is easier to expose from the new crypto impl
This is similar to `checkDeviceTrust`, which we're deprecating, but:
 * is `async`, meaning we can implement it in Rust
 * Returns a `DeviceVerificationStatus` instead of a `DeviceTrustLevel`
 * Returns `null` rather than "not verified" if the device is unknown
@richvdh richvdh force-pushed the rav/element-r/01_device_verification_status branch from 52a6b35 to fc3ed2f Compare April 14, 2023 15:39
@richvdh richvdh marked this pull request as ready for review April 14, 2023 17:51
@richvdh richvdh requested a review from a team as a code owner April 14, 2023 17:51
@richvdh richvdh requested review from justjanne and robintown April 14, 2023 17:51
@richvdh
Copy link
Member Author

richvdh commented Apr 14, 2023

The quality gate is complaining about "code smells" due to the use of deprecated APIs, but the whole point is to leave the deprecated things in place while we switch over, so I don't think we can do much about that. (now fixed)

... so that we can instantiate it in tests
@richvdh richvdh enabled auto-merge April 18, 2023 10:45
@richvdh richvdh added this pull request to the merge queue Apr 18, 2023
Merged via the queue into develop with commit a03438f Apr 18, 2023
@richvdh richvdh deleted the rav/element-r/01_device_verification_status branch April 18, 2023 11:05
richvdh added a commit to matrix-org/matrix-react-sdk that referenced this pull request Apr 24, 2023
richvdh added a commit that referenced this pull request May 24, 2023
Followups to #3287 and #3360: minor clarifications to the doc-comments
richvdh added a commit that referenced this pull request May 24, 2023
Followups to #3287 and #3360: minor clarifications to the doc-comments
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