matrix-org / matrix-rust-sdk-crypto-wasm

Apache License 2.0
13 stars 7 forks source link

Expose new method `OlmMachine.getRoomEventEncryptionInfo` #29

Closed richvdh closed 1 year ago

richvdh commented 1 year ago

Expose the new method added in https://github.com/matrix-org/matrix-rust-sdk/pull/2510

To do this, we need to give EncryptionInfo its own wrapper type; we can lift most of the functionality from DecryptedRoomEvent. And then we may as well reuse that wrapper in the DecryptedRoomEvent.

richvdh commented 1 year ago

I added a test, though it's a bit of a token effort if I'm totally honest.

Hywan commented 1 year ago

Thanks!