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

Replace uses of checkDeviceTrust with getDeviceVerificationStatus #10610

Closed
wants to merge 10 commits into from

Conversation

richvdh
Copy link
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