matrix-js-sdk icon indicating copy to clipboard operation
matrix-js-sdk copied to clipboard

Add CryptoApi.encryptToDeviceMessages() and deprecate Crypto.encryptAndSendToDevices()

Open hughns opened this issue 5 months ago • 1 comments

Fixes https://github.com/matrix-org/matrix-js-sdk/issues/3304

  • Adds CryptoApi.encryptToDeviceMessages with rust and libolm implementations.
  • Deprecates Crypto.encryptAndSendToDevices.

Depends on https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/issues/140 and https://github.com/matrix-org/matrix-js-sdk/pull/4396

Checklist

  • [x] Tests written for new code (and old code if feasible).
  • [x] New or updated public/exported symbols have accurate TSDoc documentation.
  • [x] Linter and other CI checks pass.
  • [x] Sign-off given on the changes (see CONTRIBUTING.md).

hughns avatar Sep 02 '24 10:09 hughns