mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 11:12:25 +00:00
Fix logout
This commit is contained in:
1 parent
4f599dcb7b
commit
87660e8873
2 files changed
+5
-5
No files matched your search
@@ -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]
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user