mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 06:21:03 +02:00
current target
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
6193bc2a82
commit
86580f3f20
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user