Don't append single space when replying to self (#102)

This commit is contained in:
prplecake 2022-11-07 17:48:22 -06:00 committed by GitHub
parent 70c9a40edf
commit b1ae3fef54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,11 @@ public final class NewStatusViewModel: ObservableObject {
.filter { $0 != (identity ?? identityContext.identity).account?.username }
.map("@".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 {