matrix-js-sdk
matrix-js-sdk copied to clipboard
Add CryptoApi.encryptToDeviceMessages() and deprecate Crypto.encryptAndSendToDevices()
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).