mirror of https://github.com/vector-im/riot-web
Merge pull request #218 from matrix-org/session_logged_out
Handle the new Session.logged_out event.pull/21833/head
commit
836f7ca80d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue