Fix redraft issues

This commit is contained in:
Justin Mazzocchi 2021-02-01 14:23:07 -08:00
parent 612ca9fcc8
commit 699fff540e
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ public extension CompositionViewModel {
} }
contentWarning = redraft.spoilerText contentWarning = redraft.spoilerText
displayContentWarning = redraft.spoilerText.isEmpty displayContentWarning = !redraft.spoilerText.isEmpty
sensitive = redraft.sensitive sensitive = redraft.sensitive
displayPoll = redraft.poll != nil displayPoll = redraft.poll != nil
attachmentViewModels = redraft.mediaAttachments.map { attachmentViewModels = redraft.mediaAttachments.map {

View file

@ -64,7 +64,7 @@ public final class NewStatusViewModel: ObservableObject {
compositionViewModel = CompositionViewModel(eventsSubject: compositionEventsSubject) compositionViewModel = CompositionViewModel(eventsSubject: compositionEventsSubject)
} }
if let inReplyTo = inReplyTo { if let inReplyTo = inReplyTo, redraft == nil {
compositionViewModel.text = inReplyTo.accountName.appending(" ") compositionViewModel.text = inReplyTo.accountName.appending(" ")
} }