mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +00:00
Fix redraft issues
This commit is contained in:
parent
612ca9fcc8
commit
699fff540e
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue