Skip to content
Snippets Groups Projects
Commit a1b875bb authored by David Baker's avatar David Baker
Browse files

Handle the new Session.logged_out event. Log the user out and display a...

Handle the new Session.logged_out event. Log the user out and display a message telling them they've been logged out.

Requires https://github.com/matrix-org/matrix-js-sdk/pull/100 (but safe without)
Fixes https://github.com/vector-im/vector-web/issues/414
parent 74bbb815
Branches
No related tags found
No related merge requests found
......@@ -621,6 +621,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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment