Merge pull request #7350 from Bnyro/master

fix: always use account subscriptions repository if logged in to Piped
This commit is contained in:
Bnyro 2025-04-25 17:07:51 +02:00 committed by GitHub
commit 8f901ee785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,8 +28,8 @@ object SubscriptionHelper {
private val token get() = PreferenceHelper.getToken()
private val subscriptionsRepository: SubscriptionsRepository
get() = when {
localFeedExtraction -> LocalSubscriptionsRepository()
token.isNotEmpty() -> AccountSubscriptionsRepository()
localFeedExtraction -> LocalSubscriptionsRepository()
else -> PipedLocalSubscriptionsRepository()
}
private val feedRepository: FeedRepository