Fix user removal functions, by updating them to take into account backend modifications made earlier.

This commit is contained in:
KotlinGeekDev
2025-10-13 21:31:22 +01:00
parent e6c841373b
commit 9e991f8a49
3 changed files with 4 additions and 0 deletions
@@ -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)
@@ -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,
) )
@@ -187,6 +187,7 @@ fun FollowSetsManagementDialog(
) )
followSetsViewModel.removeUserFromSet( followSetsViewModel.removeUserFromSet(
userHex, userHex,
userIsPrivate = set.privateProfiles.contains(userHex),
set, set,
account, account,
) )