You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
@@ -154,7 +154,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
|||||||
if (!this.state.showImage || !this.isGif() || SettingsStore.getValue("autoplayGifsAndVideos")) {
|
if (!this.state.showImage || !this.isGif() || SettingsStore.getValue("autoplayGifsAndVideos")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const imgElement = e.target as HTMLImageElement;
|
const imgElement = e.currentTarget;
|
||||||
imgElement.src = this.getThumbUrl();
|
imgElement.src = this.getThumbUrl();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user