Fix logout
This commit is contained in:
parent
4f599dcb7b
commit
87660e8873
2 changed files with 5 additions and 5 deletions
|
@ -94,10 +94,6 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
static logout() {
|
||||
localStorage.removeItem("matrix-auth-store");
|
||||
}
|
||||
|
||||
static async register(homeserverUrl, username, password) {
|
||||
try {
|
||||
const registrationClient = matrixcs.createClient(homeserverUrl);
|
||||
|
@ -552,4 +548,8 @@ export class ConferenceCallManager extends EventEmitter {
|
|||
|
||||
this.emit("debug");
|
||||
}
|
||||
|
||||
logout() {
|
||||
localStorage.removeItem("matrix-auth-store");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ export function JoinOrCreateRoom({ manager }) {
|
|||
(e) => {
|
||||
e.preventDefault();
|
||||
manager.logout();
|
||||
history.push("/");
|
||||
location.reload();
|
||||
},
|
||||
[manager]
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue