Be explicit about the resize method
Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
50f51d373f
commit
ae788e16d5
@ -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`;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user