Skip to content

Conversation

liemlylac
Copy link

This allows us to invalidate the currently active outbound group session for the given room.

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks useful, just a thought here

/// Returns true if a session was invalidated, false if there was
/// no session to invalidate.
#[napi(strict)]
pub async fn invalidate_group_session(&self, room_id: &identifiers::RoomId) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason not to call this discard_room_key too, as it's much less confusing for developers following the rust-sdk.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same function name in the matrix-sdk-crypto-wasm repo
Refs: https://github.com/matrix-org/matrix-sdk-crypto-wasm/blob/main/src/machine.rs#L835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants