Tell the accounts apart, and let a disabled source come back

This commit is contained in:
Arkadiusz Fal
2026-09-07 18:53:21 +02:00
parent 5ac6b7188d
commit 02efc71e7c
15 changed files with 533 additions and 317 deletions

View File

@@ -962,6 +962,9 @@ final class AppEnvironment {
switch instance.type {
case .invidious: return invidiousCredentialsManager
case .piped: return pipedCredentialsManager
// The slot a future account-keyed store lands in. What a backend's
// accounts can do is `InstanceType.accountCapabilities`; which store
// holds their secrets is this switch, and the two move together.
default: return nil
}
}