From 759ba398cc022564ca72efad762ee032db808dfb Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Sat, 31 Dec 2022 14:07:34 -0800 Subject: [PATCH] Fix Expanding Profile Picture (nosestr bug) Changelog-Fixed: Fix expanding profile picture (nosestr bug) --- damus/Views/ProfilePicView.swift | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/damus/Views/ProfilePicView.swift b/damus/Views/ProfilePicView.swift index c6317672..fbbdd2d2 100644 --- 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())