You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
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
This commit is contained in:
@ -621,6 +621,16 @@ module.exports = React.createClass({
|
|||||||
call: call
|
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();
|
Notifier.start();
|
||||||
UserActivity.start();
|
UserActivity.start();
|
||||||
Presence.start();
|
Presence.start();
|
||||||
|
Reference in New Issue
Block a user