From 65654e7e8a99e0e059188a48be3b66bf79e8f1bf Mon Sep 17 00:00:00 2001 From: sim Date: Thu, 8 Sep 2022 12:21:11 +0200 Subject: [PATCH] Lint --- .../main/java/im/vector/app/core/pushers/UnifiedPushHelper.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/core/pushers/UnifiedPushHelper.kt b/vector/src/main/java/im/vector/app/core/pushers/UnifiedPushHelper.kt index b5ec8a0d15..aab94eca93 100644 --- a/vector/src/main/java/im/vector/app/core/pushers/UnifiedPushHelper.kt +++ b/vector/src/main/java/im/vector/app/core/pushers/UnifiedPushHelper.kt @@ -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() } }