Fixes userList of the FollowList state
This commit is contained in:
+2
-2
@@ -79,7 +79,7 @@ class FollowListState(
|
|||||||
val userList =
|
val userList =
|
||||||
flow
|
flow
|
||||||
.map {
|
.map {
|
||||||
it.authors.map {
|
it.authors.mapNotNull {
|
||||||
cache.checkGetOrCreateUser(it)
|
cache.checkGetOrCreateUser(it)
|
||||||
}
|
}
|
||||||
}.flowOn(Dispatchers.Default)
|
}.flowOn(Dispatchers.Default)
|
||||||
@@ -87,7 +87,7 @@ class FollowListState(
|
|||||||
scope,
|
scope,
|
||||||
SharingStarted.Eagerly,
|
SharingStarted.Eagerly,
|
||||||
// this has priority.
|
// this has priority.
|
||||||
flow.value.authors.map {
|
flow.value.authors.mapNotNull {
|
||||||
cache.checkGetOrCreateUser(it)
|
cache.checkGetOrCreateUser(it)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user