Merge pull request #218 from matrix-org/session_logged_out
Handle the new Session.logged_out event.
This commit is contained in:
commit
836f7ca80d
1 changed files with 10 additions and 0 deletions
|
@ -624,6 +624,16 @@ module.exports = React.createClass({
|
||||||
call: call
|
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();
|
Notifier.start();
|
||||||
UserActivity.start();
|
UserActivity.start();
|
||||||
Presence.start();
|
Presence.start();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue