mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +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))
|
.map("@".appending))
|
||||||
|
|
||||||
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
|
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
|
||||||
|
compositionViewModel.contentWarning = inReplyTo.spoilerText
|
||||||
|
compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty
|
||||||
} else if let directMessageTo = directMessageTo {
|
} else if let directMessageTo = directMessageTo {
|
||||||
compositionViewModel.text = directMessageTo.accountName.appending(" ")
|
compositionViewModel.text = directMessageTo.accountName.appending(" ")
|
||||||
visibility = .direct
|
visibility = .direct
|
||||||
|
|
Loading…
Reference in a new issue