Move minimum version assignment to connection manager
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user