From f5956c87f677af268997b8d0af21459d39492b50 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 23 Apr 2018 18:14:59 +0100 Subject: [PATCH] Bind onImageError in constructor Tt uses `this` but wasn't bound anywhere so the error handler was just throwing an exception. --- src/components/views/messages/MImageBody.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/messages/MImageBody.js b/src/components/views/messages/MImageBody.js index 6a95b3c16e..d5ce533bda 100644 --- a/src/components/views/messages/MImageBody.js +++ b/src/components/views/messages/MImageBody.js @@ -49,6 +49,7 @@ export default class extends React.Component { super(props); this.onAction = this.onAction.bind(this); + this.onImageError = this.onImageError.bind(this); this.onImageEnter = this.onImageEnter.bind(this); this.onImageLeave = this.onImageLeave.bind(this); this.onClientSync = this.onClientSync.bind(this);