mirror of https://github.com/vector-im/riot-web
Close dialog on redact
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
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