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

Element-R: wire up `encryptAndSendToDevices`

Open richvdh opened this issue 1 year ago • 7 comments

This is used by element call, which could otherwise be an early adopter of the rustified crypto.

richvdh avatar Apr 19 '23 14:04 richvdh

Looks like we'll have to expose this functionality in the rust matrix-crypto-sdk as well

richvdh avatar Apr 24 '23 13:04 richvdh

Blocked on https://github.com/matrix-org/matrix-rust-sdk/issues/1816

richvdh avatar May 09 '23 12:05 richvdh

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.queueToDeviceon the results.

richvdh avatar Aug 22 '24 21:08 richvdh

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.queueToDeviceon the results.

This sounds perfect 👍

hughns avatar Aug 23 '24 10:08 hughns