You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Comment onLoggedOut & consistent comment style
This commit is contained in:
@@ -79,6 +79,10 @@ function startMatrixClient() {
|
|||||||
MatrixClientPeg.start();
|
MatrixClientPeg.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stops a running client and all related services, used after
|
||||||
|
* a session has been logged out / ended.
|
||||||
|
*/
|
||||||
function onLoggedOut() {
|
function onLoggedOut() {
|
||||||
if (window.localStorage) {
|
if (window.localStorage) {
|
||||||
const hsUrl = window.localStorage.getItem("mx_hs_url");
|
const hsUrl = window.localStorage.getItem("mx_hs_url");
|
||||||
@@ -95,7 +99,9 @@ function onLoggedOut() {
|
|||||||
dis.dispatch({action: 'on_logged_out'});
|
dis.dispatch({action: 'on_logged_out'});
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop all the background processes related to the current client
|
/**
|
||||||
|
* Stop all the background processes related to the current client
|
||||||
|
*/
|
||||||
function _stopMatrixClient() {
|
function _stopMatrixClient() {
|
||||||
Notifier.stop();
|
Notifier.stop();
|
||||||
UserActivity.stop();
|
UserActivity.stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user