You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Close current modal when session is logged out
This commit is contained in:
@@ -1378,11 +1378,14 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||||||
Lifecycle.softLogout();
|
Lifecycle.softLogout();
|
||||||
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',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user