From fa71161996a3a9ecad8b2a515a9eb9dc04ac8c15 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 16 Jul 2024 08:42:05 -0400 Subject: [PATCH] Corrects the name of the live data on Local Cache. --- .../main/java/com/vitorpamplona/amethyst/model/LocalCache.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt index dee64c791..9f5a2b842 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt @@ -2370,7 +2370,7 @@ object LocalCache { } // Observers line up here. - val live: LocalCacheLiveData = LocalCacheLiveData() + val live: LocalCacheFlow = LocalCacheFlow() private fun refreshObservers(newNote: Note) { updateObservables(newNote.event as Event) @@ -2659,7 +2659,7 @@ object LocalCache { } @Stable -class LocalCacheLiveData { +class LocalCacheFlow { private val _newEventBundles = MutableSharedFlow>(0, 10, BufferOverflow.DROP_OLDEST) val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view