mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-21 15:50:59 +00:00
Copy content warning when replying
This commit is contained in:
parent
ba59c9bbab
commit
71e7af8bc0
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue