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: pass device list change notifications into rust crypto-sdk #3254

Merged
merged 6 commits into from
Apr 11, 2023

Conversation

florianduros
Copy link
Contributor

@florianduros florianduros commented Apr 5, 2023

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Closes element-hq/element-web#24795

Pass device list from /sync to the new crypto.

  • I renamed the handleDeviceListChanges method into processDeviceLists to match the method names in the CryptoBackend interface. ie: processKeyCounts, preprocessToDeviceMessages
  • I renamed the syncDeviceList parameter to deviceList to match the parameter names in processXX or preprocessXX methods.

Here's what your changelog entry will look like:

✨ Features

# Conflicts:
#	spec/integ/sliding-sync-sdk.spec.ts
@florianduros florianduros marked this pull request as ready for review April 6, 2023 09:36
@florianduros florianduros requested a review from a team as a code owner April 6, 2023 09:36
@richvdh richvdh changed the title Add device list to new crypto Element-R: pass device list change notifications into rust crypto-sdk Apr 6, 2023
src/rust-crypto/rust-crypto.ts Outdated Show resolved Hide resolved
src/crypto/index.ts Outdated Show resolved Hide resolved
src/crypto/index.ts Outdated Show resolved Hide resolved
src/common-crypto/CryptoBackend.ts Outdated Show resolved Hide resolved
src/common-crypto/CryptoBackend.ts Outdated Show resolved Hide resolved
src/common-crypto/CryptoBackend.ts Outdated Show resolved Hide resolved
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

src/rust-crypto/rust-crypto.ts Outdated Show resolved Hide resolved
src/rust-crypto/rust-crypto.ts Outdated Show resolved Hide resolved
@richvdh
Copy link
Member

richvdh commented Apr 11, 2023

I'm just going to merge this, despite the quality gate not being satisfied. Ultimately this sort of thing can be covered in devicelist-integ.spec.ts, but that is currently tied into the old crypto, which is element-hq/element-web#24833.

@richvdh richvdh merged commit f71d86f into develop Apr 11, 2023
@richvdh richvdh deleted the florianduros/feat/add-device-list-new-crypto branch April 11, 2023 13:42
texuf pushed a commit to texuf/matrix-js-sdk that referenced this pull request Apr 17, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Element-R: Wire up remaining bits of /sync response
2 participants