This commit is contained in:
sim 2022-09-08 12:21:11 +02:00
parent f65074b3c5
commit 65654e7e8a
1 changed files with 1 additions and 2 deletions

View File

@ -250,7 +250,6 @@ class UnifiedPushHelper @Inject constructor(
private fun isInternalDistributor(): Boolean { private fun isInternalDistributor(): Boolean {
return UnifiedPush.getDistributor(context).isEmpty() || return UnifiedPush.getDistributor(context).isEmpty() ||
UnifiedPush.getDistributor(context) == context.packageName UnifiedPush.getDistributor(context) == context.packageName
} }
fun getPrivacyFriendlyUpEndpoint(): String? { fun getPrivacyFriendlyUpEndpoint(): String? {
@ -274,7 +273,7 @@ class UnifiedPushHelper @Inject constructor(
} }
fun getPushGateway(): String? { fun getPushGateway(): String? {
return if (isEmbeddedDistributor()) context.getString(R.string.pusher_http_url) return if (isEmbeddedDistributor()) stringProvider.getString(R.string.pusher_http_url)
else unifiedPushStore.getPushGateway() else unifiedPushStore.getPushGateway()
} }
} }