Fix Expanding Profile Picture (nosestr bug)

Changelog-Fixed: Fix expanding profile picture (nosestr bug)
This commit is contained in:
Joel Klabo
2022-12-31 14:07:34 -08:00
committed by William Casarin
parent 6f5f86114b
commit 759ba398cc

View File

@@ -33,8 +33,6 @@ func pfp_line_width(_ h: Highlight) -> CGFloat {
} }
struct InnerProfilePicView: View { struct InnerProfilePicView: View {
@Environment(\.redactionReasons) private var reasons
let url: URL? let url: URL?
let pubkey: String let pubkey: String
let size: CGFloat let size: CGFloat
@@ -54,7 +52,6 @@ struct InnerProfilePicView: View {
var body: some View { var body: some View {
Group { Group {
if reasons.isEmpty {
KFAnimatedImage(url) KFAnimatedImage(url)
.configure { view in .configure { view in
view.framePreloadCount = 1 view.framePreloadCount = 1
@@ -66,9 +63,6 @@ struct InnerProfilePicView: View {
.scaleFactor(UIScreen.main.scale) .scaleFactor(UIScreen.main.scale)
.loadDiskFileSynchronously() .loadDiskFileSynchronously()
.fade(duration: 0.1) .fade(duration: 0.1)
} else {
KFImage(url)
}
} }
.frame(width: size, height: size) .frame(width: size, height: size)
.clipShape(Circle()) .clipShape(Circle())