mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Don't append single space when replying to self (#102)
This commit is contained in:
parent
70c9a40edf
commit
b1ae3fef54
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue