From 2deca322e796f64cf86ebc87153e61eb5399a0a9 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Tue, 3 Oct 2023 14:16:07 -0400 Subject: [PATCH] fix(ui): For non-polling sources use last activity date for status So that status changes if player is updated instead of waiting for track to be discovered --- src/backend/server/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/server/api.ts b/src/backend/server/api.ts index dfe53be5..381192f1 100644 --- a/src/backend/server/api.ts +++ b/src/backend/server/api.ts @@ -159,7 +159,7 @@ export const setupApi = (app: ExpressWithAsync, logger: Logger, initialLogOutput } else if (canPoll) { base.status = polling ? 'Polling' : 'Idle'; } else { - base.status = tracksDiscovered > 0 ? 'Received Data' : 'Awaiting Data' + base.status = !x.instantiatedAt.isSame(x.lastActivityAt) ? 'Received Data' : 'Awaiting Data'; } return base; });