-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdk: Add support for authenticated media stable feature #3961
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3961 +/- ##
==========================================
+ Coverage 84.17% 84.20% +0.03%
==========================================
Files 267 267
Lines 28181 28195 +14
==========================================
+ Hits 23720 23742 +22
+ Misses 4461 4453 -8 ☔ View full report in Codecov by Sentry. |
c9f2741
to
063d3cf
Compare
Was added post-merge to the MSC for servers that support authenticated media but do not support all of Matrix 1.11 yet. Signed-off-by: Kévin Commaille <[email protected]>
063d3cf
to
02751ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to assert in the tests that we are actually forcing the matrix version?
I don't see how we can assert that directly, everything happens inside that one call to the method. It is asserted indirectly by the fact that it uses the authenticated media endpoint. |
@Hywan, maybe you can clarify what you meant, if it is blocking the review? |
Hmm, it seems fine actually, I don't remember exactly what I was referring to. I'm approving and merging this PR. |
Was added post-merge to the MSC in matrix-org/matrix-spec-proposals#4180 for servers that support authenticated media but do not support all of Matrix 1.11 yet.
Requires a kind of hack to force Ruma to select the stable endpoint by ignoring the real versions advertised by the homeserver for this particular endpoint.