From c1823e2e5ae46996b169842cbe7876e10254cc9d Mon Sep 17 00:00:00 2001 From: dangwynne <31453528+dangwynne@users.noreply.github.com> Date: Wed, 3 Feb 2021 22:31:28 +0000 Subject: [PATCH] Close current modal when session is logged out --- src/components/structures/MatrixChat.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index 8ed4b6cd11..ce5467ec89 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1378,11 +1378,14 @@ export default class MatrixChat extends React.PureComponent { Lifecycle.softLogout(); return; } + + Modal.closeCurrentModal("User has been logged out."); Modal.createTrackedDialog('Signed out', '', ErrorDialog, { title: _t('Signed Out'), description: _t('For security, this session has been signed out. Please sign in again.'), }); + dis.dispatch({ action: 'logout', });