Close dialog on redact

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-09 08:13:42 +02:00
parent b723092ed2
commit 829bef45a2
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 0 deletions

View File

@ -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