Corrects the name of the live data on Local Cache.

This commit is contained in:
Vitor Pamplona 2024-07-16 08:42:05 -04:00
parent 8de4d461d4
commit fa71161996

View File

@ -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<Set<Note>>(0, 10, BufferOverflow.DROP_OLDEST)
val newEventBundles = _newEventBundles.asSharedFlow() // read-only public view