Refactoring

This commit is contained in:
Justin Mazzocchi 2022-11-07 16:24:28 -08:00
parent e8c1db842e
commit fceec62370

View file

@ -79,11 +79,10 @@ public final class NewStatusViewModel: ObservableObject {
.filter { $0 != (identity ?? identityContext.identity).account?.username }
.map("@".appending))
if !inReplyTo.isMine {
if !mentions.isEmpty {
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
} else {
compositionViewModel.text = ""
}
compositionViewModel.contentWarning = inReplyTo.spoilerText
compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty
} else if let directMessageTo = directMessageTo {