Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #218 from matrix-org/session_logged_out
Browse files Browse the repository at this point in the history
Handle the new Session.logged_out event.
  • Loading branch information
dbkr committed Mar 15, 2016
2 parents 1a74b0c + a1b875b commit 836f7ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 836f7ca

Please sign in to comment.