Merge pull request #5507 from thornbill/min-server-version

This commit is contained in:
Bill Thornton 2024-05-15 00:05:19 -04:00 committed by GitHub
commit a358d34ea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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