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

Fix: dont check for unverified devices in left members #838

Merged
merged 2 commits into from
Feb 13, 2019

Conversation

bwindels
Copy link
Contributor

No description provided.

@bwindels bwindels changed the title Fix: dont check devices for left members Fix: dont check for unverified devices in left members Feb 12, 2019
@bwindels bwindels requested a review from a team February 12, 2019 18:23
return true;
const membership = this.currentState.members[userId].membership;
// check for negative values rather than positive to be
// extra careful to not report false positives here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't specific to your change, but this isn't actually a question of being extra careful: this is (currently) a tristate where a device can be verified, unverified or blocked, so it depends what you want to do in the case where the room contains blocked devices. In this case the presence of blocked devices won't affect the return of Room. hasUnverifiedDevices() which I think is probably the correct behaviour?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant being careful with checking the membership, but actually I should probably use getEncryptionTargetMembers instead.

@bwindels
Copy link
Contributor Author

@dbkr good for another look

@bwindels bwindels merged commit 4309749 into develop Feb 13, 2019
@t3chguy t3chguy deleted the bwindels/e2eiconsanddialog branch May 10, 2022 14:21
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