From 3d16be26c5377025367503580f8836a694ed36aa Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sat, 18 Apr 2020 17:38:33 -0400 Subject: [PATCH] always reload status to ensure lastest data --- src/app/components/stream/thread/thread.component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/components/stream/thread/thread.component.ts b/src/app/components/stream/thread/thread.component.ts index bb6d7576..be18a022 100644 --- a/src/app/components/stream/thread/thread.component.ts +++ b/src/app/components/stream/thread/thread.component.ts @@ -133,10 +133,9 @@ export class ThreadComponent implements OnInit, OnDestroy { const sourceAccount = openThreadEvent.sourceAccount; if (status.visibility === 'public' || status.visibility === 'unlisted') { - var statusPromise: Promise = Promise.resolve(status); - - if (!sourceAccount || sourceAccount.id !== currentAccount.id) { - statusPromise = this.toolsService.getInstanceInfo(currentAccount) + // var statusPromise: Promise = Promise.resolve(status); + // if (!sourceAccount || sourceAccount.id !== currentAccount.id) { + var statusPromise = this.toolsService.getInstanceInfo(currentAccount) .then(instance => { let version: 'v1' | 'v2' = 'v1'; if (instance.major >= 3) version = 'v2'; @@ -149,7 +148,7 @@ export class ThreadComponent implements OnInit, OnDestroy { } throw new Error('could not find status'); }); - } + // } this.retrieveThread(currentAccount, statusPromise);