Replace forwarding UI with dialog

Replaces the old forwarding UI with a dialog based on designs from
https://github.com/vector-im/element-web/issues/14690.

Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
Robin Townsend 2021-05-08 19:48:34 -04:00
parent 04d566e247
commit b9b237fc9a
5 changed files with 338 additions and 4 deletions

View file

@ -154,11 +154,11 @@ export default class MessageContextMenu extends React.Component {
};
onForwardClick = () => {
if (this.props.onCloseDialog) this.props.onCloseDialog();
dis.dispatch({
action: 'forward_event',
const ForwardDialog = sdk.getComponent("dialogs.ForwardDialog");
Modal.createTrackedDialog('Forward Message', '', ForwardDialog, {
cli: MatrixClientPeg.get(),
event: this.props.mxEvent,
});
}, 'mx_Dialog_forwardmessage');
this.closeMenu();
};