From 829bef45a2e25792b61e01444a3b7fb7f5ffac10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 9 Apr 2021 08:13:42 +0200 Subject: [PATCH] Close dialog on redact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/context_menus/MessageContextMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index af7b7178c7..d2ae368cec 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -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