Fix ForwardDialog crashing when rendering reply

Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
Robin Townsend 2021-05-10 00:40:54 -04:00
parent c96888c9cb
commit 100efb1a90
2 changed files with 8 additions and 2 deletions

View file

@ -158,6 +158,7 @@ export default class MessageContextMenu extends React.Component {
Modal.createTrackedDialog('Forward Message', '', ForwardDialog, {
cli: MatrixClientPeg.get(),
event: this.props.mxEvent,
permalinkCreator: this.props.permalinkCreator,
}, 'mx_Dialog_forwardmessage');
this.closeMenu();
};