Fix logout

This commit is contained in:
Robert Long 2021-07-30 14:32:52 -07:00
parent 4f599dcb7b
commit 87660e8873
2 changed files with 5 additions and 5 deletions

View file

@ -94,10 +94,6 @@ export class ConferenceCallManager extends EventEmitter {
} }
} }
static logout() {
localStorage.removeItem("matrix-auth-store");
}
static async register(homeserverUrl, username, password) { static async register(homeserverUrl, username, password) {
try { try {
const registrationClient = matrixcs.createClient(homeserverUrl); const registrationClient = matrixcs.createClient(homeserverUrl);
@ -552,4 +548,8 @@ export class ConferenceCallManager extends EventEmitter {
this.emit("debug"); this.emit("debug");
} }
logout() {
localStorage.removeItem("matrix-auth-store");
}
} }

View file

@ -64,7 +64,7 @@ export function JoinOrCreateRoom({ manager }) {
(e) => { (e) => {
e.preventDefault(); e.preventDefault();
manager.logout(); manager.logout();
history.push("/"); location.reload();
}, },
[manager] [manager]
); );