From 17151221135a2099e33158eca4704790141791bc Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Tue, 17 Jan 2023 08:11:37 +0100 Subject: [PATCH] Fix async image upload --- .../Status/Editor/Components/StatusEditorMediaView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Status/Sources/Status/Editor/Components/StatusEditorMediaView.swift b/Packages/Status/Sources/Status/Editor/Components/StatusEditorMediaView.swift index 630983a3..2cab5a01 100644 --- a/Packages/Status/Sources/Status/Editor/Components/StatusEditorMediaView.swift +++ b/Packages/Status/Sources/Status/Editor/Components/StatusEditorMediaView.swift @@ -19,7 +19,7 @@ struct StatusEditorMediaView: View { ZStack(alignment: .bottomTrailing) { if container.image != nil { makeLocalImage(container: container) - } else if let url = container.mediaAttachement?.url { + } else if let url = container.mediaAttachement?.url ?? container.mediaAttachement?.previewUrl { makeLazyImage(url: url) } if container.mediaAttachement?.description?.isEmpty == false {