1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Close ImageView after forward click

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-04-02 08:17:05 +02:00
parent 9606297f7c
commit e5a563f887
2 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,9 @@ export default class MessageContextMenu extends React.Component {
/* callback called when the menu is dismissed */
onFinished: PropTypes.func,
/* if the menu is inside a dialog, we sometimes need to close that dialog after click (forwarding) */
onCloseDialog: PropTypes.func,
};
state = {
@ -194,6 +197,7 @@ export default class MessageContextMenu extends React.Component {
action: 'forward_event',
event: this.props.mxEvent,
});
this.props.onCloseDialog();
this.closeMenu();
};