Skip to content

feat: Don't show a contact as verified if their key changed since the verification#4574

Merged
Hocuri merged 1 commit intomasterfrom
hoc/not-verified-if-key-changed
Jul 31, 2023
Merged

feat: Don't show a contact as verified if their key changed since the verification#4574
Hocuri merged 1 commit intomasterfrom
hoc/not-verified-if-key-changed

Conversation

@Hocuri
Copy link
Copy Markdown
Collaborator

@Hocuri Hocuri commented Jul 24, 2023

If a contact's key changed since the verification, then it's very unlikely that they still have the old, verified key. So, don't show them as verified anymore.

This also means that you can't add a contact like this to a verified group, which is good.

The documentation actually already described this (new) behavior:

/// and if the key has not changed since this verification.

so, this adapts the code to the documentation.

If a contact's key changed since the verification, then it's very
unlikely that they still have the old, verified key. So, don't show them
as verified anymore.

This also means that you can't add a contact like this to a verified
group, which is good.

The documentation actually already described this (new) behavior:

```rust
/// and if the key has not changed since this verification.
```

so, this adapts the code to the documentation.
@Hocuri Hocuri requested a review from link2xt July 24, 2023 16:16
Copy link
Copy Markdown
Collaborator

@adbenitez adbenitez left a comment

Choose a reason for hiding this comment

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

really nice improvement <3

@Hocuri Hocuri merged commit 60bacbe into master Jul 31, 2023
@Hocuri Hocuri deleted the hoc/not-verified-if-key-changed branch July 31, 2023 16:59
@link2xt link2xt mentioned this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants