Skip to content

Update matrix-rust-sdk to 0.17.0#79

Open
poljar wants to merge 1 commit into
mainfrom
poljar/bump-sdk
Open

Update matrix-rust-sdk to 0.17.0#79
poljar wants to merge 1 commit into
mainfrom
poljar/bump-sdk

Conversation

@poljar
Copy link
Copy Markdown
Contributor

@poljar poljar commented May 13, 2026

No description provided.

@poljar poljar force-pushed the poljar/bump-sdk branch 2 times, most recently from 5b7efd8 to 1b378bd Compare May 13, 2026 14:02
@poljar poljar requested a review from richvdh May 13, 2026 14:25
Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

A few nits

Comment thread .gitignore
/docs/*
/target
*.tgz
yarn.lock
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yarn.lock probably wants committing, not ignoring?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, can add it instead of ignoring it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Err, should I then remove the package-lock.json file?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh. We should decide if we're using yarn or npm, and stick to it.

Comment thread src/machine.rs
let to_device_events: Vec<_> =
to_device_events.into_iter().map(|event| event.to_raw()).collect();

serde_json::to_string(&(to_device_events, room_key_info)).map_err(into_err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could you update the doc-comment to reflect what is now returned?

(Also, is returning a json-encoded array really the best thing to do?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

All I'm doing here is ensuring that we're returning what we were returning prior to the version bump.

Unless you wanted me to also change what we're returning?

(Also, is returning a json-encoded array really the best thing to do?)

It's actually an array of arrays, probably not, but that's probably a topic for a different PR.

Copy link
Copy Markdown
Member

@richvdh richvdh May 13, 2026

Choose a reason for hiding this comment

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

All I'm doing here is ensuring that we're returning what we were returning prior to the version bump.

Sounds like the doc was wrong before the version bump, then? Sigh. Would you mind patching it up while we're in the area?

It's actually an array of arrays, probably not, but that's probably a topic for a different PR.

agreed, let's leave it alone.

Comment thread src/responses.rs
AlgorithmInfo::MegolmV1AesSha2 { curve25519_key, .. } => curve25519_key.clone(),
AlgorithmInfo::OlmV1Curve25519AesSha2 { curve25519_public_key_base64 } => {
curve25519_public_key_base64.clone()
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is kindof a nonsense for a room key. In crypto-wasm, we handle it by erroring when we build the DecryptedRoomEvent struct. Is there something similar we could do here?

At the very least, can we add a comment here saying that this is a nonsensical situation?

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