Move minimum version assignment to connection manager

This commit is contained in:
Bill Thornton
2025-04-21 17:38:42 -04:00
parent f688c1f223
commit 79156322fc
2 changed files with 3 additions and 5 deletions
-4
View File
@@ -1,7 +1,6 @@
// NOTE: This is used for jsdoc return type
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Api } from '@jellyfin/sdk';
import { MINIMUM_VERSION } from '@jellyfin/sdk/lib/versions';
import { Credentials, ApiClient } from 'jellyfin-apiclient';
import { appHost } from './apphost';
@@ -38,9 +37,6 @@ class ServerConnections extends ConnectionManager {
this.localApiClient = null;
this.firstConnection = 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