Merge pull request #218 from matrix-org/session_logged_out

Handle the new Session.logged_out event.
pull/21833/head
David Baker 2016-03-15 14:51:50 +00:00
commit 836f7ca80d
1 changed files with 10 additions and 0 deletions

View File

@ -624,6 +624,16 @@ module.exports = React.createClass({
call: call
});
});
cli.on('Session.logged_out', function(call) {
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createDialog(ErrorDialog, {
title: "Logged Out",
description: "For security, this session has been logged out. Please log in again."
});
dis.dispatch({
action: 'logout'
});
});
Notifier.start();
UserActivity.start();
Presence.start();