Fix bug in follows-you-label (IOS-192)

🤦 RTFM (and add some docs)
This commit is contained in:
Nathan Mattes 2023-12-27 23:41:23 +01:00
parent 9e49775201
commit 59fe79fe49
1 changed files with 3 additions and 3 deletions

View File

@ -106,11 +106,11 @@ extension ProfileHeaderView.ViewModel {
// follows you
Publishers.CombineLatest($relationship, $isMyself)
.map { relationship, isMyself in
return (relationship?.following ?? false) && (isMyself == false)
return (relationship?.followedBy ?? false) && (isMyself == false)
}
.receive(on: DispatchQueue.main)
.sink { isFollowing in
view.followsYouBlurEffectView.isHidden = (isFollowing == false)
.sink { followsYou in
view.followsYouBlurEffectView.isHidden = (followsYou == false)
}
.store(in: &disposeBag)