mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Use appContext in NotificationSubscription and ProfileSubscription
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user