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) {
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ export function JoinOrCreateRoom({ manager }) {
|
||||||
(e) => {
|
(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
manager.logout();
|
manager.logout();
|
||||||
history.push("/");
|
location.reload();
|
||||||
},
|
},
|
||||||
[manager]
|
[manager]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue