From ae26c92a380c9ecdcc4c7f5c721649ad1723e0d2 Mon Sep 17 00:00:00 2001 From: thornbill Date: Fri, 17 May 2024 13:52:42 -0400 Subject: [PATCH] Backport pull request #5507 from jellyfin-web/release-10.9.z Set the minimum server version to match the sdk Original-merge: a358d34ea9644d351251426a33e9da94ec11cc95 Merged-by: thornbill Backported-by: Joshua M. Boniface --- src/components/ServerConnections.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/ServerConnections.js b/src/components/ServerConnections.js index 07393994e..e67f0e0b5 100644 --- a/src/components/ServerConnections.js +++ b/src/components/ServerConnections.js @@ -1,3 +1,4 @@ +import { MINIMUM_VERSION } from '@jellyfin/sdk/lib/versions'; import { ConnectionManager, Credentials, ApiClient } from 'jellyfin-apiclient'; import { appHost } from './apphost'; @@ -33,6 +34,9 @@ class ServerConnections extends ConnectionManager { super(...arguments); this.localApiClient = null; + // Set the apiclient minimum version to match the SDK + this._minServerVersion = MINIMUM_VERSION; + Events.on(this, 'localusersignedout', (_e, logoutInfo) => { setUserInfo(null, null); // Ensure the updated credentials are persisted to storage