You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix removed pixelRatio
This commit is contained in:
@@ -217,7 +217,7 @@ export default class MImageBody extends React.Component {
|
|||||||
const info = content.info;
|
const info = content.info;
|
||||||
if (
|
if (
|
||||||
this._isGif() ||
|
this._isGif() ||
|
||||||
pixelRatio === 1.0 ||
|
window.devicePixelRatio === 1.0 ||
|
||||||
(!info || !info.w || !info.h || !info.size)
|
(!info || !info.w || !info.h || !info.size)
|
||||||
) {
|
) {
|
||||||
return media.getThumbnailOfSourceHttp(thumbWidth, thumbHeight);
|
return media.getThumbnailOfSourceHttp(thumbWidth, thumbHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user