Fix redraft issues
This commit is contained in:
parent
612ca9fcc8
commit
699fff540e
|
@ -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 {
|
||||||
|
|
|
@ -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(" ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue