1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Merge pull request #2058 from matrix-org/t3chguy/hide_logout_warning_whilst_logging_out

while logging out ignore `Session.logged_out` as it is intentional
This commit is contained in:
Bruno Windels
2018-08-07 10:31:29 +02:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -1262,6 +1262,7 @@ export default React.createClass({
}, true);
});
cli.on('Session.logged_out', function(call) {
if (Lifecycle.isLoggingOut()) return;
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createTrackedDialog('Signed out', '', ErrorDialog, {
title: _t('Signed Out'),