This commit is contained in:
sim 2022-09-08 12:21:11 +02:00
parent f65074b3c5
commit 65654e7e8a

View file

@ -250,7 +250,6 @@ class UnifiedPushHelper @Inject constructor(
private fun isInternalDistributor(): Boolean {
return UnifiedPush.getDistributor(context).isEmpty() ||
UnifiedPush.getDistributor(context) == context.packageName
}
fun getPrivacyFriendlyUpEndpoint(): String? {
@ -274,7 +273,7 @@ class UnifiedPushHelper @Inject constructor(
}
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()
}
}