mirror of https://github.com/vector-im/riot-web
Close current modal when session is logged out
parent
7489011ab7
commit
c1823e2e5a
|
@ -1379,10 +1379,13 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
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',
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue