Comment logout

pull/21833/head
David Baker 2016-08-02 18:55:13 +01:00
parent b9a5f7902b
commit c2c548ef5a
1 changed files with 3 additions and 0 deletions

View File

@ -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