From 699fff540eaedda63b0966fd3bbd8ded16ca8a5b Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 1 Feb 2021 14:23:07 -0800 Subject: [PATCH] Fix redraft issues --- .../Sources/ViewModels/View Models/CompositionViewModel.swift | 2 +- .../Sources/ViewModels/View Models/NewStatusViewModel.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ViewModels/Sources/ViewModels/View Models/CompositionViewModel.swift b/ViewModels/Sources/ViewModels/View Models/CompositionViewModel.swift index 634a664..b4dfcc8 100644 --- a/ViewModels/Sources/ViewModels/View Models/CompositionViewModel.swift +++ b/ViewModels/Sources/ViewModels/View Models/CompositionViewModel.swift @@ -106,7 +106,7 @@ public extension CompositionViewModel { } contentWarning = redraft.spoilerText - displayContentWarning = redraft.spoilerText.isEmpty + displayContentWarning = !redraft.spoilerText.isEmpty sensitive = redraft.sensitive displayPoll = redraft.poll != nil attachmentViewModels = redraft.mediaAttachments.map { diff --git a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift index a2ce3da..536fbb5 100644 --- a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift +++ b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift @@ -64,7 +64,7 @@ public final class NewStatusViewModel: ObservableObject { compositionViewModel = CompositionViewModel(eventsSubject: compositionEventsSubject) } - if let inReplyTo = inReplyTo { + if let inReplyTo = inReplyTo, redraft == nil { compositionViewModel.text = inReplyTo.accountName.appending(" ") }