matrix-js-sdk
matrix-js-sdk copied to clipboard
Element-R: wire up `encryptAndSendToDevices`
This is used by element call, which could otherwise be an early adopter of the rustified crypto.
Looks like we'll have to expose this functionality in the rust matrix-crypto-sdk as well
Blocked on https://github.com/matrix-org/matrix-rust-sdk/issues/1816
Given that MatrixClient.encryptAndSendToDevices
takes a DeviceInfo
, which is part of the legacy crypto stack, we won't be able to implement this directly.
I'd suggest adding a new api encryptToDeviceMessages
to CryptoApi
, which takes an array of (user_id, device_id)
pairs. The application can then call MatrixClient.queueToDevice
on the results.
I'd suggest adding a new api
encryptToDeviceMessages
toCryptoApi
, which takes an array of(user_id, device_id)
pairs. The application can then callMatrixClient.queueToDevice
on the results.
This sounds perfect 👍