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

Fixes to event encryption in the Rust Crypto implementation #3202

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 9, 2023

A couple of fixes for things that I messed up in #3122.


Here's what your changelog entry will look like:

🐛 Bug Fixes

  • Fixes to event encryption in the Rust Crypto implementation (#3202).

I forgot this in #3122 :(.

To be honest, I'm not sure how it ever worked.
Putting the new request inside a `finally` block meant we would never actually
transition the promise chain from failure to success. Sticking a no-op `catch`
in the chain makes sure that we can recover from an error.
@richvdh richvdh requested a review from a team as a code owner March 9, 2023 13:34
@richvdh richvdh changed the title Fixes to event encryption in the rust-sdk Fixes to event encryption in the Rust Crypto implementation Mar 9, 2023
@richvdh
Copy link
Member Author

richvdh commented Mar 9, 2023

Tests are coming in #3203, but that's currently blocked pending a review on a fix in the rust-sdk.

@richvdh
Copy link
Member Author

richvdh commented Mar 10, 2023

I'm going to override the quality gate, because the lack of tests is known and tests are on their way.

@richvdh richvdh merged commit 69f7789 into develop Mar 10, 2023
@richvdh richvdh deleted the rav/element-r/encryption_fixes branch March 10, 2023 11:00
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Apr 21, 2023
* Allow via_servers property in findPredecessor (update to MSC3946) ([\matrix-org#3240](matrix-org#3240)). Contributed by @andybalaam.
* Fire `closed` event when IndexedDB closes unexpectedly ([\matrix-org#3218](matrix-org#3218)).
* Implement MSC3952: intentional mentions ([\matrix-org#3092](matrix-org#3092)). Fixes element-hq/element-web#24376.
* Send one time key count and unused fallback keys for rust-crypto ([\matrix-org#3215](matrix-org#3215)). Fixes element-hq/element-web#24795. Contributed by @florianduros.
* Improve `processBeaconEvents` hotpath ([\matrix-org#3200](matrix-org#3200)).
* Implement MSC3966: a push rule condition to check if an array contains a value ([\matrix-org#3180](matrix-org#3180)).
* indexddb-local-backend - return the current sync to database promise … ([\matrix-org#3222](matrix-org#3222)). Contributed by @texuf.
* Revert "Add the call object to Call events" ([\matrix-org#3236](matrix-org#3236)).
* Handle group call redaction ([\matrix-org#3231](matrix-org#3231)). Fixes vector-im/voip-internal#128.
* Stop doing O(n^2) work to find event's home (`eventShouldLiveIn`) ([\matrix-org#3227](matrix-org#3227)). Contributed by @jryans.
* Fix bug where video would not unmute if it started muted ([\matrix-org#3213](matrix-org#3213)). Fixes element-hq/element-call#925.
* Fixes to event encryption in the Rust Crypto implementation ([\matrix-org#3202](matrix-org#3202)).
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.

2 participants