diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index e50669c26a..2e22511924 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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();