commit 18c7cba53c466f7941c10e79a6740f660c86bc72 parent 9a40fd595dce3a5c8a5e08cc59d621c28d719095 Author: William Casarin <jb55@jb55.com> Date: Sat, 14 Jan 2023 17:24:03 -0800 Minor refactor Diffstat:
M | damus/Views/NoteContentView.swift | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift @@ -91,8 +91,8 @@ struct NoteContentView: View { InvoicesView(invoices: artifacts.invoices) } - if show_images, self.preview != nil { - self.preview + if let preview = self.preview, show_images { + preview } else { ForEach(artifacts.links, id:\.self) { link in if let url = link {