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

Document checking crypto state before using hasUnverifiedDevices #889

Merged
merged 1 commit into from
Apr 8, 2019

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Apr 8, 2019

It's unclear what hasUnverifiedDevices should do when crypto is disabled on
the current device. Let's at least document that callers should first check
crypto status.

It's unclear what `hasUnverifiedDevices` should do when crypto is disabled on
the current device. Let's at least document that callers should first check
crypto status.
@jryans jryans requested a review from a team April 8, 2019 15:26
jryans added a commit to jryans/matrix-react-sdk that referenced this pull request Apr 8, 2019
When crypto is disabled for the current device, we can't tell whether there are
unverified devices since we aren't tracking devices at all.

Let's be safe and default to the warning state.

See also matrix-org/matrix-js-sdk#889
@jryans jryans merged commit 420b4d1 into matrix-org:develop Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants