From f980e385305968ce076fff7ba0a01081410fcbfd Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 14 May 2024 17:01:38 -0400 Subject: [PATCH] Set the minimum server version to match the sdk --- src/components/ServerConnections.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/ServerConnections.js b/src/components/ServerConnections.js index 70dcc931d0..5884c62677 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);