Skip to content
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

refactor: BREAKING Add new authenticated media endpoints #1889

Closed
wants to merge 1 commit into from

Conversation

krille-chan
Copy link
Contributor

@krille-chan krille-chan requested a review from a team as a code owner July 26, 2024 16:54
@krille-chan krille-chan force-pushed the krille/migrate-download-media-links branch from b8648dd to de91009 Compare July 28, 2024 14:48
);
}

@Deprecated('Use `getAuthenticatedDownloadLink()` instead')
Copy link
Member

Choose a reason for hiding this comment

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

Are these deprecated? The guide asks you to check the server supported version and then use the the endpoint corresponding to the supported version

If the server doesn’t support Matrix 1.11, the existing /_matrix/media/* endpoints should continue to be used.

https://matrix.org/blog/2024/06/20/matrix-v1.11-release/

@@ -1310,8 +1310,8 @@ void main() {
final THUMBNAIL_BUFF = Uint8List.fromList([2]);
Future<Uint8List> downloadCallback(Uri uri) async {
return {
'/_matrix/media/v3/download/example.org/file': FILE_BUFF,
'/_matrix/media/v3/download/example.org/thumb': THUMBNAIL_BUFF,
'/_matrix/client/v1/media/download/example.org/file': FILE_BUFF,
Copy link
Member

Choose a reason for hiding this comment

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

can we have the old ones and also add the new endpoints to make sure both are supported as expected?

@td-famedly
Copy link
Member

superseeded by #1901

@td-famedly td-famedly closed this Aug 16, 2024
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