This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 829
Replace uses of checkDeviceTrust
with getDeviceVerificationStatus
#10663
Merged
richvdh
merged 12 commits into
develop
from
rav/element-r/01_device_verification_status
Apr 24, 2023
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4dffcf6
Use `fetchDevicesWithVerification` in DevicesPanel
richvdh f706559
A couple of simple uses of `checkDeviceTrust`
richvdh 6c6fe7f
cases of `checkDeviceTrust` that need `asyncSome`
richvdh 432e293
`isDeviceVerified`: switch to `getDeviceVerificationStatus`
richvdh ef47246
EventTile: use `getDeviceVerificationStatus`
richvdh 9d2d47b
UserInfo step 1: `getE2EStatus`
richvdh edfad2b
UserInfo step 2: `DeviceItem`
richvdh 74d5696
UserInfo step 3: `DevicesSection`
richvdh 3c88d94
Add some comments on the last use of checkDeviceTrust
richvdh 1cc6e40
remove unsed stub from createTestClient
richvdh 8b72ebf
Apply suggestions from code review
richvdh 02f8263
Update DeviceListener.ts
richvdh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match L177 in the same file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem here is avoiding the implicit cast to boolean if
deviceTrust
is nullish. We could do something likeisVerified = !!(isMe ? deviceTrust?.crossSigningVerified : deviceTrust?.isVerified()))
but I'm far from convinced that's clearer.At L177, we have an explicit check on
deviceTrust
, so I'd say my variant of this is closer to L177 than yours.