You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-25 17:02:04 +03:00
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:
@ -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();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user