Don't append single space when replying to self (#102)
This commit is contained in:
parent
70c9a40edf
commit
b1ae3fef54
|
@ -79,7 +79,11 @@ public final class NewStatusViewModel: ObservableObject {
|
|||
.filter { $0 != (identity ?? identityContext.identity).account?.username }
|
||||
.map("@".appending))
|
||||
|
||||
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
|
||||
if !inReplyTo.isMine {
|
||||
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
|
||||
} else {
|
||||
compositionViewModel.text = ""
|
||||
}
|
||||
compositionViewModel.contentWarning = inReplyTo.spoilerText
|
||||
compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty
|
||||
} else if let directMessageTo = directMessageTo {
|
||||
|
|
Loading…
Reference in New Issue