commit a5c33e4431825dc8e8e13f95806cab67d78b9439
parent ad7a79c2bb6c661c49bdbf4d87fd07858d8c39af
Author: Swift <scoder1747@gmail.com>
Date: Mon, 17 Apr 2023 10:57:23 -0400
Fix reply image previews appearing on new posts
Closes: #954
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift
@@ -231,7 +231,9 @@ struct PostView: View {
PVImageCarouselView(media: $uploadedMedias, deviceWidth: deviceSize.size.width)
.onChange(of: uploadedMedias) { _ in
- damus_state.drafts.medias = uploadedMedias
+ if replying_to == nil {
+ damus_state.drafts.medias = uploadedMedias
+ }
}
}