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
commit 07083e61b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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'),