From 86c0ca975b3355594e235238875d076d2386d5bb Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 25 Aug 2023 13:27:57 -0400 Subject: [PATCH] Moves the User DataSource invalidation to the right channel --- .../amethyst/service/NostrSingleUserDataSource.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleUserDataSource.kt b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleUserDataSource.kt index 5dfa266f6..cb835c6cf 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleUserDataSource.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleUserDataSource.kt @@ -66,14 +66,14 @@ object NostrSingleUserDataSource : NostrDataSource("SingleUserFeed") { eose.time = time } } + } + val userChannelOnce = requestNewChannel() { time, relayUrl -> // Many relays operate with limits in the amount of filters. // As information comes, the filters will be rotated to get more data. invalidateFilters() } - val userChannelOnce = requestNewChannel() - override fun updateChannelFilters() { userChannel.typedFilters = listOfNotNull(createUserReportFilter(), createUserStatusFilter()).flatten().ifEmpty { null } userChannelOnce.typedFilters = listOfNotNull(createUserFilter()).flatten().ifEmpty { null }