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
1 changed files with 5 additions and 1 deletions

View File

@ -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 {