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

crypto: Don't recalculate SenderData if the sender is known but not verified #3784

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Jul 31, 2024

After discussion with @richvdh we realised that the policy we agreed earlier for initial creation of SenderData applies here too: if the sender is known, we stick with that and don't recalculate to find out whether they are verified.

Part of #3751

Applies on top of #3782

@andybalaam andybalaam marked this pull request as ready for review August 2, 2024 09:12
@andybalaam andybalaam requested a review from a team as a code owner August 2, 2024 09:12
@andybalaam andybalaam requested review from poljar and removed request for a team August 2, 2024 09:12
@andybalaam andybalaam force-pushed the andybalaam/use-senderdata-to-save-lookups-on-decrypt branch from be16e70 to f10d602 Compare August 5, 2024 14:31
@andybalaam andybalaam force-pushed the andybalaam/dont-recalc-senderdata-if-known branch from ffe50c3 to dce6948 Compare August 5, 2024 14:39
Base automatically changed from andybalaam/use-senderdata-to-save-lookups-on-decrypt to main August 5, 2024 14:46
@andybalaam andybalaam force-pushed the andybalaam/dont-recalc-senderdata-if-known branch from dce6948 to 7e504a6 Compare August 5, 2024 15:40
Copy link

codecov bot commented Aug 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.09%. Comparing base (91c10ae) to head (7e504a6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3784   +/-   ##
=======================================
  Coverage   84.08%   84.09%           
=======================================
  Files         262      262           
  Lines       27456    27456           
=======================================
+ Hits        23087    23089    +2     
+ Misses       4369     4367    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Doesn't that mean that a unverified message will never turn into a verified one? Are we sure we're fine with that?

@andybalaam
Copy link
Member Author

Doesn't that mean that a unverified message will never turn into a verified one? Are we sure we're fine with that?

Yes, if the sender was not verified at the time we received the message, we are OK continuing to believe that.

Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Alright, looks good then.

@andybalaam andybalaam merged commit ffba842 into main Aug 6, 2024
40 checks passed
@andybalaam andybalaam deleted the andybalaam/dont-recalc-senderdata-if-known branch August 6, 2024 08:34
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