From 45192d1cf75d8f8682f2fc7b23c760d139285c22 Mon Sep 17 00:00:00 2001 From: KotlinGeekDev Date: Fri, 26 Sep 2025 12:32:44 +0100 Subject: [PATCH] Remove statements to avoid polluting the logs. Modify the timing on the flow producer. --- .../amethyst/model/nip51Lists/followSets/FollowSetState.kt | 3 +-- .../service/relayClient/reqCommand/user/UserObservers.kt | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/followSets/FollowSetState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/followSets/FollowSetState.kt index f2d096405..120c651a1 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/followSets/FollowSetState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/followSets/FollowSetState.kt @@ -52,7 +52,6 @@ class FollowSetState( suspend fun getFollowSetNotes() = withContext(Dispatchers.Default) { val followSetNotes = LocalCache.getFollowSetNotesFor(user) - Log.d(this@FollowSetState.javaClass.simpleName, "Number of follow sets: ${followSetNotes.size}") return@withContext followSetNotes } @@ -62,7 +61,7 @@ class FollowSetState( val followSetNotes = getFollowSetNotes() val followSets = followSetNotes.map { mapNoteToFollowSet(it) } emit(followSets) - delay(1000) + delay(2000) } }.flowOn(Dispatchers.Default) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/reqCommand/user/UserObservers.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/reqCommand/user/UserObservers.kt index 99045a72e..7ac6f5b0f 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/reqCommand/user/UserObservers.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/relayClient/reqCommand/user/UserObservers.kt @@ -412,7 +412,6 @@ fun observeUserIsFollowing( // Subscribe in the relay for changes in the metadata of this user. UserFinderFilterAssemblerSubscription(user1, accountViewModel) val isUserInFollowSets = accountViewModel.account.followSetsState.isUserInFollowSets(user2) - println("Is ${user2.toBestDisplayName()} in a Follow set? $isUserInFollowSets") // Subscribe in the LocalCache for changes that arrive in the device val flow =