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

Element-R: handle events which arrive before their keys #3230

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 24, 2023

Currently, any event which is received before the decryption keys will not be decrypted. We can fix this by retrying decryption after keys are received.

Fixes element-hq/element-web#24489
Requires matrix-org/matrix-rust-sdk#1704


Here's what your changelog entry will look like:

🐛 Bug Fixes

richvdh added 2 commits March 31, 2023 07:10
mostly, this is about using `testUtils.awaitDecryption` rather than custom
code. Some other cleanups too.
@richvdh richvdh force-pushed the rav/element-r/late_megolm_keys branch from 472c2f1 to 4cce55a Compare March 31, 2023 06:30
@richvdh richvdh marked this pull request as ready for review March 31, 2023 09:10
@richvdh richvdh requested review from a team as code owners March 31, 2023 09:10
Copy link
Contributor

@weeman1337 weeman1337 left a comment

Choose a reason for hiding this comment

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

👍 looks good to me

@germain-gg germain-gg removed their request for review April 3, 2023 08:31
@richvdh richvdh added this pull request to the merge queue Apr 5, 2023
Merged via the queue into develop with commit 9a840d4 Apr 5, 2023
@richvdh richvdh deleted the rav/element-r/late_megolm_keys branch April 5, 2023 10:18
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Apr 25, 2023
* Change `Store.save()` to return a `Promise` ([\matrix-org#3221](matrix-org#3221)). Contributed by @texuf.
* Add typedoc-plugin-mdn-links ([\matrix-org#3292](matrix-org#3292)).
* Annotate events with executed push rule ([\matrix-org#3284](matrix-org#3284)). Contributed by @kerryarchibald.
* Element-R: pass device list change notifications into rust crypto-sdk ([\matrix-org#3254](matrix-org#3254)). Fixes element-hq/element-web#24795. Contributed by @florianduros.
* Support for MSC3882 revision 1 ([\matrix-org#3228](matrix-org#3228)). Contributed by @hughns.
* Fix screen sharing on Firefox 113 ([\matrix-org#3282](matrix-org#3282)). Contributed by @tulir.
* Retry processing potential poll events after decryption ([\matrix-org#3246](matrix-org#3246)). Fixes element-hq/element-web#24568.
* Element-R: handle events which arrive before their keys ([\matrix-org#3230](matrix-org#3230)). Fixes element-hq/element-web#24489.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Element-R: messages which arrive before their keys are not decrypted
3 participants