From 673f632563b9248ca2a90ce2135c2704322f7cf1 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 6 Jun 2024 12:43:59 -0400 Subject: [PATCH] Refactoring --- .../amethyst/service/NostrSingleEventDataSource.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleEventDataSource.kt b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleEventDataSource.kt index 9a195594c..705097479 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleEventDataSource.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrSingleEventDataSource.kt @@ -244,7 +244,7 @@ object NostrSingleEventDataSource : NostrDataSource("SingleEventFeed") { eventsToWatch.forEach { val eose = it.lastReactionsDownloadTime[relayUrl] if (eose == null) { - it.lastReactionsDownloadTime = it.lastReactionsDownloadTime + Pair(relayUrl, EOSETime(time)) + it.lastReactionsDownloadTime += Pair(relayUrl, EOSETime(time)) } else { eose.time = time } @@ -253,7 +253,7 @@ object NostrSingleEventDataSource : NostrDataSource("SingleEventFeed") { addressesToWatch.forEach { val eose = it.lastReactionsDownloadTime[relayUrl] if (eose == null) { - it.lastReactionsDownloadTime = it.lastReactionsDownloadTime + Pair(relayUrl, EOSETime(time)) + it.lastReactionsDownloadTime += Pair(relayUrl, EOSETime(time)) } else { eose.time = time }