Use appContext in NotificationSubscription and ProfileSubscription

This commit is contained in:
greenart7c3
2025-11-24 11:38:07 -03:00
parent 2ea05a3d2a
commit 8dd4c65cee
2 changed files with 2 additions and 2 deletions
@@ -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()
}
@@ -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()
}