damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 759ba398cc022564ca72efad762ee032db808dfb
parent 6f5f86114b0948cac286f2b1594e8f3f831e9032
Author: Joel Klabo <joelklabo@gmail.com>
Date:   Sat, 31 Dec 2022 14:07:34 -0800

Fix Expanding Profile Picture (nosestr bug)

Changelog-Fixed: Fix expanding profile picture (nosestr bug)

Diffstat:
Mdamus/Views/ProfilePicView.swift | 28+++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/damus/Views/ProfilePicView.swift b/damus/Views/ProfilePicView.swift @@ -33,8 +33,6 @@ func pfp_line_width(_ h: Highlight) -> CGFloat { } struct InnerProfilePicView: View { - @Environment(\.redactionReasons) private var reasons - let url: URL? let pubkey: String let size: CGFloat @@ -54,21 +52,17 @@ struct InnerProfilePicView: View { var body: some View { Group { - if reasons.isEmpty { - KFAnimatedImage(url) - .configure { view in - view.framePreloadCount = 1 - } - .placeholder { _ in - Placeholder - } - .cacheOriginalImage() - .scaleFactor(UIScreen.main.scale) - .loadDiskFileSynchronously() - .fade(duration: 0.1) - } else { - KFImage(url) - } + KFAnimatedImage(url) + .configure { view in + view.framePreloadCount = 1 + } + .placeholder { _ in + Placeholder + } + .cacheOriginalImage() + .scaleFactor(UIScreen.main.scale) + .loadDiskFileSynchronously() + .fade(duration: 0.1) } .frame(width: size, height: size) .clipShape(Circle())