From f718034f2b495bdd217e06a639c007bbbc9bbc30 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 24 Aug 2022 19:40:11 +0530 Subject: [PATCH] Track the subscription --- src/domain/session/SessionViewModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index 3373dbab..7226dbdf 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -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() {