Fix user removal functions, by updating them to take into account backend modifications made earlier.
This commit is contained in:
+2
@@ -247,6 +247,7 @@ class FollowSetFeedViewModel(
|
||||
|
||||
fun removeUserFromSet(
|
||||
userProfileHex: String,
|
||||
userIsPrivate: Boolean,
|
||||
followSet: FollowSet,
|
||||
account: Account,
|
||||
) {
|
||||
@@ -259,6 +260,7 @@ class FollowSetFeedViewModel(
|
||||
PeopleListEvent.removeUser(
|
||||
earlierVersion = followSetEvent,
|
||||
pubKeyHex = userProfileHex,
|
||||
isUserPrivate = userIsPrivate,
|
||||
signer = account.signer,
|
||||
) {
|
||||
account.sendMyPublicAndPrivateOutbox(it)
|
||||
|
||||
+1
@@ -200,6 +200,7 @@ fun FollowSetScreen(
|
||||
onDeleteUser = {
|
||||
followSetViewModel.removeUserFromSet(
|
||||
it,
|
||||
userIsPrivate = selectedSet.privateProfiles.contains(it),
|
||||
selectedSet,
|
||||
accountViewModel.account,
|
||||
)
|
||||
|
||||
+1
@@ -187,6 +187,7 @@ fun FollowSetsManagementDialog(
|
||||
)
|
||||
followSetsViewModel.removeUserFromSet(
|
||||
userHex,
|
||||
userIsPrivate = set.privateProfiles.contains(userHex),
|
||||
set,
|
||||
account,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user