Close current modal when session is logged out

pull/21833/head
dangwynne 2021-02-03 22:31:28 +00:00 committed by GitHub
parent 7489011ab7
commit c1823e2e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1379,10 +1379,13 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
return; return;
} }
Modal.closeCurrentModal("User has been logged out.");
Modal.createTrackedDialog('Signed out', '', ErrorDialog, { Modal.createTrackedDialog('Signed out', '', ErrorDialog, {
title: _t('Signed Out'), title: _t('Signed Out'),
description: _t('For security, this session has been signed out. Please sign in again.'), description: _t('For security, this session has been signed out. Please sign in again.'),
}); });
dis.dispatch({ dis.dispatch({
action: 'logout', action: 'logout',
}); });