mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Track the subscription
This commit is contained in:
parent
205ecdc52e
commit
f718034f2b
@ -96,7 +96,7 @@ export class SessionViewModel extends ViewModel {
|
||||
}
|
||||
|
||||
_setupForcedLogoutOnAccessTokenInvalidation() {
|
||||
this._client.sync.status.subscribe(status => {
|
||||
this.track(this._client.sync.status.subscribe(status => {
|
||||
if (status === SyncStatus.Stopped) {
|
||||
const error = this._client.sync.error;
|
||||
if (error?.errcode === "M_UNKNOWN_TOKEN") {
|
||||
@ -109,7 +109,7 @@ export class SessionViewModel extends ViewModel {
|
||||
this.navigation.applyPath(path);
|
||||
}
|
||||
}
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
get id() {
|
||||
|
Loading…
Reference in New Issue
Block a user