diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index a81e76089..adb0590ce 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -120,6 +120,7 @@ import kotlinx.coroutines.flow.combine import kotlinx.coroutines.flow.combineTransform import kotlinx.coroutines.flow.emitAll import kotlinx.coroutines.flow.flatMapLatest +import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.mapLatest @@ -2895,6 +2896,13 @@ class Account( return LocalCache.getOrCreateAddressableNote(aTag) } + fun getFollowSetNotes(): List = LocalCache.getFollowSetsFor(userProfile()) + + suspend fun followSetNotesFlow() = + flowOf(getFollowSetNotes()) + .flowOn(Dispatchers.IO) + .stateIn(scope) + fun getMuteListFlow(): StateFlow = getMuteListNote().flow().metadata.stateFlow fun getBlockList(): PeopleListEvent? = getBlockListNote().event as? PeopleListEvent