mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Close dialog on redact
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
b723092ed2
commit
829bef45a2
@ -150,6 +150,7 @@ export default class MessageContextMenu extends React.Component {
|
||||
undefined,
|
||||
reason ? { reason } : {},
|
||||
);
|
||||
if (this.props.onCloseDialog) this.props.onCloseDialog();
|
||||
} catch (e) {
|
||||
const code = e.errcode || e.statusCode;
|
||||
// only show the dialog if failing for something other than a network error
|
||||
|
Loading…
Reference in New Issue
Block a user