From 2d1b3bd7f08ef1ec290e3aca59993e4c36e992db Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 22 Apr 2020 12:24:14 +0300 Subject: [PATCH] Fix media download endpoint version --- matrix/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/matrix.go b/matrix/matrix.go index 303184f..722883d 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -1055,7 +1055,7 @@ func (c *Container) GetDownloadURL(uri id.ContentURI) string { if dlURL.Scheme == "" { dlURL.Scheme = "https" } - dlURL.Path = path.Join(dlURL.Path, "/_matrix/media/v1/download", uri.Homeserver, uri.FileID) + dlURL.Path = path.Join(dlURL.Path, "/_matrix/media/r0/download", uri.Homeserver, uri.FileID) return dlURL.String() }