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:
parent
04d566e247
commit
b9b237fc9a
5 changed files with 338 additions and 4 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue