You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-26 04:01:04 +03:00
Merge pull request #218 from matrix-org/session_logged_out
Handle the new Session.logged_out event.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user