Authenticated media support
Matrix v1.11 introduces MSC3916 - Authenticated Media which when implemented and enabled on a homeserver, requires clients to send the users access token with any requests for media files which were uploaded after the setting was enabled.
This is still currently an optional setting, but quick adoption is likely and the matrix.org homeserver itself is scheduled to enable it on September 4th, 2024.
Currently iamb will return the following message when attempting to retrieve new media (media from before the setting was enabled is fine, as expected) from a Synapse server with enable_authenticated_media: True set: [Image error: Matrix(Http(Api(Server(ClientApi(Error { status_code: 404, body: Standard { kind: NotFound, message: "Not found" } })))))]
The Client implementation guidance section of the v1.11 release announcement may be helpful.
Oh, I see. This should happen automatically by updating the matrix-sdk dependency https://github.com/matrix-org/matrix-rust-sdk/pull/3598 from 0.7.1 to something newer, but that either has not been released and/or the crates.io entry has not been updated yet. https://crates.io/crates/matrix-sdk
I tried changing the version property of the matrix-sdk dependency to a git reference the latest commit of main on the matrix-rust-sdk in Cargo.toml, but I found there were a few breaking changes. Someone with a better understanding of the codebase and the matrix rust sdk may want to have look, it could be the needed changes are actually minimal.
Looks like https://github.com/matrix-org/matrix-rust-sdk/issues/3742 is the issue to watch for any planned release of matrx-rust-sdk.
matrix-sdk v0.8.0 is now released and is up on crates.io! https://crates.io/crates/matrix-sdk
There is an updated version in Issue 378. @dstu, I will run your fork and report any issues.
Since this has been closed for two weeks already, could we get a new release, please? :)
Would it be possible to manually fix this on my install of iamb without waiting for a release? If so how would I do it?
Bumping since it's been some time. Could we get a new release?
still stuck with this T_T
[Image error: Matrix(Http(Api(Server(ClientApi(Error { status_code: 404, body: Standard { kind: NotFound, message: "authentication is required to download this media" } })))))]
You can always download a binary of the latest commit from the CI (here for the current commit).
@VAWVAW thank you very much, I did build the alpha release after posting here, last day only. It works fine now (: