Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Replace uses of checkDeviceTrust with getDeviceVerificationStatus#10610

Closed
richvdh wants to merge 10 commits intodevelopfrom
rav/element-r/01_device_verification_status
Closed

Replace uses of checkDeviceTrust with getDeviceVerificationStatus#10610
richvdh wants to merge 10 commits intodevelopfrom
rav/element-r/01_device_verification_status

Conversation

@richvdh
Copy link
Copy Markdown
Member

@richvdh richvdh commented Apr 14, 2023

matrix-org/matrix-js-sdk#3287 and matrix-org/matrix-js-sdk#3303 added a new API called getDeviceVerificationStatus. Let's use it.

Hopefully this makes sense to review commit-by-commit.

Fixes element-hq/element-web#25092


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

richvdh added 10 commits April 17, 2023 23:41
We have a method called `fetchDevicesWithVerification` which is currently used
in the new Session manager. Let's use it for the (old) Devices Panel too,
because it allows us to check the device verification upfront, rather than on
the fly, which is going to be handy when that operation becomes async
these are in an async method, but currently use `some`. We need to invent an
`asyncSome` (we already have an `asyncEvery`) and use that
This is ok except we need an "unmounted" guard because it's an old-style
componment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

T-Task Refactoring, enabling or disabling functionality, other engineering tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Element-R: Replace CryptoBackend.checkDeviceTrust

1 participant