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

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

View File

@@ -1,3 +1,4 @@
import { MINIMUM_VERSION } from '@jellyfin/sdk/lib/versions';
import { ApiClient } from 'jellyfin-apiclient';
import events from 'utils/events';
@@ -53,7 +54,8 @@ export default class ConnectionManager {
const self = this;
this._apiClients = [];
self._minServerVersion = '3.2.33';
// Set the minimum version to match the SDK
self._minServerVersion = MINIMUM_VERSION;
self.appVersion = () => appVersion;