mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Actually make SessionLoadViewModel.logout do something
This commit is contained in:
parent
1482ba24bf
commit
887c3d4f89
@ -154,7 +154,8 @@ export class SessionLoadViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async logout() {
|
async logout() {
|
||||||
await this._client.logout();
|
const sessionId = this.navigation.path.get("session")?.value;
|
||||||
|
await this._client.startLogout(sessionId);
|
||||||
this.navigation.push("session", true);
|
this.navigation.push("session", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user