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: use a new error code for UTDs from device-relative historical events #4139

Merged
merged 5 commits into from
Apr 17, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Apr 2, 2024

If an event was sent before our device was created, and backup is not configured, we have no hope of decrypting it. To reflect this, use a different error code for the decryption failure.

Part of element-hq/element-meta#2313

Suggest review commit-by-commit

@richvdh
Copy link
Member Author

richvdh commented Apr 3, 2024

Needs some updates per element-hq/element-meta#2313 (comment)

Now updated

@richvdh richvdh marked this pull request as draft April 3, 2024 16:15
@richvdh richvdh force-pushed the rav/historical_events/work branch from 3317eae to c5d03dd Compare April 16, 2024 12:35
richvdh added 3 commits April 16, 2024 13:50
... and a convenience method in PerSessionKeyBackupDownloader to access it.
... so that we don't need to remember to do it everywhere.
This doesn't have any effect on the tests, but *does* stop jest from hanging
when you run the tests in in-band mode. It shouldn't *really* be needed, but
using fake timers gives more reproducible tests, and I don't have the
time/patience to debug why it is needed.
@richvdh richvdh added this pull request to the merge queue Apr 17, 2024
Merged via the queue into develop with commit c30e498 Apr 17, 2024
28 checks passed
@richvdh richvdh deleted the rav/historical_events/work branch April 17, 2024 10:49
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