mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
Actually make SessionLoadViewModel.logout do something
This commit is contained in:
parent
2f27f83194
commit
a0ee8a9607
@ -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