diff --git a/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationSubscription.kt b/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationSubscription.kt index dd0cfda2..0c77428d 100644 --- a/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationSubscription.kt +++ b/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationSubscription.kt @@ -67,7 +67,7 @@ class NotificationSubscription( * Call this method every time the relay list or the user list changes */ suspend fun updateFilter() { - LocalPreferences.allAccounts(Amber.instance).forEach { + LocalPreferences.allAccounts(appContext).forEach { if (!subIds.containsKey(it.hexKey)) { subIds[it.hexKey] = UUID.randomUUID().toString() } diff --git a/app/src/main/java/com/greenart7c3/nostrsigner/service/ProfileSubscription.kt b/app/src/main/java/com/greenart7c3/nostrsigner/service/ProfileSubscription.kt index 51be6c25..5054f423 100644 --- a/app/src/main/java/com/greenart7c3/nostrsigner/service/ProfileSubscription.kt +++ b/app/src/main/java/com/greenart7c3/nostrsigner/service/ProfileSubscription.kt @@ -101,7 +101,7 @@ class ProfileSubscription( * Call this method every time the relay list or the user list changes */ suspend fun updateFilter() { - LocalPreferences.allAccounts(Amber.instance).forEach { + LocalPreferences.allAccounts(appContext).forEach { if (!subIds.containsKey(it.hexKey)) { subIds[it.hexKey] = UUID.randomUUID().toString() }