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(
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)
@@ -200,6 +200,7 @@ fun FollowSetScreen(
onDeleteUser = {
followSetViewModel.removeUserFromSet(
it,
userIsPrivate = selectedSet.privateProfiles.contains(it),
selectedSet,
accountViewModel.account,
)
@@ -187,6 +187,7 @@ fun FollowSetsManagementDialog(
)
followSetsViewModel.removeUserFromSet(
userHex,
userIsPrivate = set.privateProfiles.contains(userHex),
set,
account,
)