turt2live / matrix-bot-sdk

TypeScript/JavaScript SDK for Matrix bots
MIT License
194 stars 68 forks source link

Get type checking from OlmMachine.shareRoomKey #338

Open AndrewFerr opened 1 year ago

AndrewFerr commented 1 year ago

Update the rust-sdk bindings to have access to type checking in the return value of OlmMachine.shareRoomKey, which now returns an array of ToDeviceRequest objects instead of a JSON encoding of the whole array.

Signed-off-by: Andrew Ferrazzutti andrewf@element.io

Checklist

AndrewFerr commented 1 year ago

Note that this applies on top of https://github.com/turt2live/matrix-bot-sdk/pull/332 due to incrementing the rust-sdk version from that PR.