mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-20 05:51:08 +02:00
Comment logout
This commit is contained in:
parent
b9a5f7902b
commit
c2c548ef5a
@ -41,6 +41,9 @@ function setLoggedIn(credentials) {
|
||||
startMatrixClient();
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs the current session out and transitions to the logged-out state
|
||||
*/
|
||||
function logout() {
|
||||
if (MatrixClientPeg.get().isGuest()) {
|
||||
// logout doesn't work for guest sessions
|
||||
|
Loading…
x
Reference in New Issue
Block a user