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 logout
This commit is contained in:
@@ -41,6 +41,9 @@ function setLoggedIn(credentials) {
|
|||||||
startMatrixClient();
|
startMatrixClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Logs the current session out and transitions to the logged-out state
|
||||||
|
*/
|
||||||
function logout() {
|
function logout() {
|
||||||
if (MatrixClientPeg.get().isGuest()) {
|
if (MatrixClientPeg.get().isGuest()) {
|
||||||
// logout doesn't work for guest sessions
|
// logout doesn't work for guest sessions
|
||||||
|
|||||||
Reference in New Issue
Block a user