diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 9553874960a..41a21542e19 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -656,7 +656,7 @@ const view = new window.Whisper.ReactWrapper({ Component: MediaGallery, props, - onClose: this.resetPanel.bind(this), + onClose: () => this.resetPanel(), }); this.listenBack(view);