damus

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

commit 504b21e91c54603c249be4bbef688b0fd2917060
parent afec694432c6d294af4f1406a5198f7105d6be90
Author: ericholguin <ericholguin@apache.org>
Date:   Wed, 31 Jan 2024 19:27:13 -0700

note: fix previews not rendering

Fixes: dfcef0ba958b ("Fix previews not rendering")
Closes: https://github.com/damus-io/damus/issues/1932
Changelog-Fixed: Fixed previews not rendering
Signed-off-by: ericholguin <ericholguin@apache.org>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/NoteContentView.swift | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift @@ -62,7 +62,7 @@ struct NoteContentView: View { } var preview: LinkViewRepresentable? { - guard blur_images, + guard !blur_images, case .loaded(let preview) = preview_model.state, case .value(let cached) = preview else { return nil @@ -93,7 +93,7 @@ struct NoteContentView: View { func previewView(links: [URL]) -> some View { Group { - if let preview = self.preview, blur_images { + if let preview = self.preview, !blur_images { if let preview_height { preview .frame(height: preview_height)