diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index cce628120c..af7b7178c7 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -197,7 +197,7 @@ export default class MessageContextMenu extends React.Component { action: 'forward_event', event: this.props.mxEvent, }); - this.props.onCloseDialog(); + if (this.props.onCloseDialog) this.props.onCloseDialog(); this.closeMenu(); };