Restore function for getting follow sets(due to merge of upstream).
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user