Fix logout
This commit is contained in:
@@ -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]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user