Restore function for getting follow sets(due to merge of upstream).

This commit is contained in:
KotlinGeekDev
2024-11-01 22:27:55 +01:00
parent 4b76f56293
commit d763f43b40
@@ -2163,6 +2163,19 @@ object LocalCache {
}
}
fun getFollowSetsFor(user: User): List<AddressableNote> {
checkNotInMainThread()
return addressables
.filter { _, note ->
val listEvent = note.event
(
listEvent is PeopleListEvent &&
user.pubkeyHex == listEvent.pubKey
)
}
}
suspend fun findStatusesForUser(user: User): ImmutableList<AddressableNote> {
checkNotInMainThread()