From f38329826729d440f95292e42c258abc52b4dec0 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Thu, 29 Mar 2018 17:08:07 +0100 Subject: [PATCH] Remove duplicate event handler. --- src/components/views/messages/MStickerBody.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/messages/MStickerBody.js b/src/components/views/messages/MStickerBody.js index ef2c2106cc..5b44789445 100644 --- a/src/components/views/messages/MStickerBody.js +++ b/src/components/views/messages/MStickerBody.js @@ -50,6 +50,9 @@ export default class MStickerBody extends MImageBody { }); }, 500); this.setState({hidePlaceholderTimer}); + if (this.props.onWidgetLoad) { + this.props.onWidgetLoad(); + } } _afterComponentDidMount() { @@ -129,7 +132,6 @@ export default class MStickerBody extends MImageBody { src={contentUrl} ref='image' alt={content.body} - onLoad={this.props.onWidgetLoad} onLoad={this._onImageLoad} onMouseEnter={this._onMouseEnter} onMouseLeave={this._onMouseLeave}