Copy content warning when replying

This commit is contained in:
Justin Mazzocchi 2021-03-08 21:08:16 -08:00
parent ba59c9bbab
commit 71e7af8bc0
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -79,6 +79,8 @@ public final class NewStatusViewModel: ObservableObject {
.map("@".appending))
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
compositionViewModel.contentWarning = inReplyTo.spoilerText
compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty
} else if let directMessageTo = directMessageTo {
compositionViewModel.text = directMessageTo.accountName.appending(" ")
visibility = .direct