mirror of
https://github.com/metabolist/metatext.git
synced 2024-05-19 08:48:12 +00:00
Don't append single space when replying to self
This commit is contained in:
parent
ffb880b59f
commit
c914bb1c5e
|
@ -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 a new issue