From ae788e16d5ee3bd3d7d119f54e1ace61e485b278 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Thu, 24 Sep 2020 10:48:01 +0100 Subject: [PATCH] Be explicit about the resize method Co-authored-by: Travis Ralston --- src/matrix-cypher/matrix-cypher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix-cypher/matrix-cypher.ts b/src/matrix-cypher/matrix-cypher.ts index 5744a4a..7697200 100644 --- a/src/matrix-cypher/matrix-cypher.ts +++ b/src/matrix-cypher/matrix-cypher.ts @@ -193,7 +193,7 @@ export function getThumbnailURI( throw new Error(`mxc invalid. mxc: ${mxcId}`); } // eslint-disable-next-line max-len - return `https://${clientURL}/_matrix/media/r0/thumbnail/${mxcParse.groups.server}/${mxcParse.groups.mediaId}?height=${height}&width=${width}`; + return `https://${clientURL}/_matrix/media/r0/thumbnail/${mxcParse.groups.server}/${mxcParse.groups.mediaId}?height=${height}&width=${width}&method=crop`; }