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(
|
fun removeUserFromSet(
|
||||||
userProfileHex: String,
|
userProfileHex: String,
|
||||||
|
userIsPrivate: Boolean,
|
||||||
followSet: FollowSet,
|
followSet: FollowSet,
|
||||||
account: Account,
|
account: Account,
|
||||||
) {
|
) {
|
||||||
@@ -259,6 +260,7 @@ class FollowSetFeedViewModel(
|
|||||||
PeopleListEvent.removeUser(
|
PeopleListEvent.removeUser(
|
||||||
earlierVersion = followSetEvent,
|
earlierVersion = followSetEvent,
|
||||||
pubKeyHex = userProfileHex,
|
pubKeyHex = userProfileHex,
|
||||||
|
isUserPrivate = userIsPrivate,
|
||||||
signer = account.signer,
|
signer = account.signer,
|
||||||
) {
|
) {
|
||||||
account.sendMyPublicAndPrivateOutbox(it)
|
account.sendMyPublicAndPrivateOutbox(it)
|
||||||
|
|||||||
+1
@@ -200,6 +200,7 @@ fun FollowSetScreen(
|
|||||||
onDeleteUser = {
|
onDeleteUser = {
|
||||||
followSetViewModel.removeUserFromSet(
|
followSetViewModel.removeUserFromSet(
|
||||||
it,
|
it,
|
||||||
|
userIsPrivate = selectedSet.privateProfiles.contains(it),
|
||||||
selectedSet,
|
selectedSet,
|
||||||
accountViewModel.account,
|
accountViewModel.account,
|
||||||
)
|
)
|
||||||
|
|||||||
+1
@@ -187,6 +187,7 @@ fun FollowSetsManagementDialog(
|
|||||||
)
|
)
|
||||||
followSetsViewModel.removeUserFromSet(
|
followSetsViewModel.removeUserFromSet(
|
||||||
userHex,
|
userHex,
|
||||||
|
userIsPrivate = set.privateProfiles.contains(userHex),
|
||||||
set,
|
set,
|
||||||
account,
|
account,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user