From 1a9d91cdc0da1dd6401d36a9a1dc49d600d97acd Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 27 Aug 2024 17:37:53 -0400 Subject: [PATCH] Fixes correct saving of UnifiedPush endpoints --- .../amethyst/service/notifications/PushDistributorHandler.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/service/notifications/PushDistributorHandler.kt b/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/service/notifications/PushDistributorHandler.kt index c928185c2..3f334b6ab 100644 --- a/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/service/notifications/PushDistributorHandler.kt +++ b/amethyst/src/fdroid/java/com/vitorpamplona/amethyst/service/notifications/PushDistributorHandler.kt @@ -42,9 +42,8 @@ object PushDistributorHandler : PushDistributorActions { private val unifiedPush: UnifiedPush = UnifiedPush private var endpointInternal = "" - val endpoint = endpointInternal - fun getSavedEndpoint() = endpoint + fun getSavedEndpoint() = endpointInternal fun setEndpoint(newEndpoint: String) { endpointInternal = newEndpoint