Tries to solve a duplicate user in a lazy column bug
This commit is contained in:
+1
@@ -125,6 +125,7 @@ fun DisplayFollowList(
|
|||||||
val contactsState by observeNoteEventAndMap<ContactListEvent, ImmutableList<User>?>(contactListNote, accountViewModel) { contactList ->
|
val contactsState by observeNoteEventAndMap<ContactListEvent, ImmutableList<User>?>(contactListNote, accountViewModel) { contactList ->
|
||||||
contactList
|
contactList
|
||||||
?.unverifiedFollowKeySet()
|
?.unverifiedFollowKeySet()
|
||||||
|
?.toSet()
|
||||||
?.mapNotNull {
|
?.mapNotNull {
|
||||||
accountViewModel.checkGetOrCreateUser(it)
|
accountViewModel.checkGetOrCreateUser(it)
|
||||||
}?.toPersistentList()
|
}?.toPersistentList()
|
||||||
|
|||||||
Reference in New Issue
Block a user