mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-24 10:41:28 +01:00
Merge pull request #218 from matrix-org/session_logged_out
Handle the new Session.logged_out event.
This commit is contained in:
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…
x
Reference in New Issue
Block a user