vendor: Bump gomatrixserverlib to pull in CreateMediaDownloadRequest
MODIFY
vendor/manifest
vendor/manifest
{
"importpath": "github.com/matrix-org/gomatrixserverlib",
"repository": "https://github.com/matrix-org/gomatrixserverlib",
- "revision": "c396ef3cc1e546729f7052f1f48e345cc59269f4",
+ "revision": "b1dfcb3b345cc8410f1a03fec0a1ffe6bd002dcd",
"branch": "master"
},
{

MODIFY
vendor/src/github.com/matrix-org/gomatrixserverlib/client.go
vendor/src/github.com/matrix-org/gomatrixserverlib/client.go
@@ -220,3 +220,14 @@ func (fc *Client) LookupServerKeys(
}
return result, nil
}
+
+// CreateMediaDownloadRequest creates a request for media on a homeserver and returns the http.Response or an error
+func (fc *Client) CreateMediaDownloadRequest(matrixServer ServerName, mediaID string) (*http.Response, error) {
+ requestURL := "matrix://" + string(matrixServer) + "/_matrix/media/v1/download/" + string(matrixServer) + "/" + mediaID
+ resp, err := fc.client.Get(requestURL)
+ if err != nil {
+ return nil, err
+ }
+
+ return resp, nil
+}

vendor: Bump gomatrixserverlib to pull in CreateMediaDownloadRequest