only check follow sets when user1 is the logged-in user
This commit is contained in:
+5
@@ -413,7 +413,12 @@ fun observeUserIsFollowing(
|
|||||||
UserFinderFilterAssemblerSubscription(user1, accountViewModel)
|
UserFinderFilterAssemblerSubscription(user1, accountViewModel)
|
||||||
val isUserInFollowSets =
|
val isUserInFollowSets =
|
||||||
remember(accountViewModel.account.followSetsState) {
|
remember(accountViewModel.account.followSetsState) {
|
||||||
|
// Only check follow sets if user1 is the logged-in user
|
||||||
|
if (user1 == accountViewModel.account.userProfile()) {
|
||||||
accountViewModel.account.followSetsState.isUserInFollowSets(user2)
|
accountViewModel.account.followSetsState.isUserInFollowSets(user2)
|
||||||
|
} else {
|
||||||
|
false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subscribe in the LocalCache for changes that arrive in the device
|
// Subscribe in the LocalCache for changes that arrive in the device
|
||||||
|
|||||||
Reference in New Issue
Block a user