mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Refactoring
This commit is contained in:
parent
e8c1db842e
commit
fceec62370
1 changed files with 2 additions and 3 deletions
|
@ -79,11 +79,10 @@ public final class NewStatusViewModel: ObservableObject {
|
||||||
.filter { $0 != (identity ?? identityContext.identity).account?.username }
|
.filter { $0 != (identity ?? identityContext.identity).account?.username }
|
||||||
.map("@".appending))
|
.map("@".appending))
|
||||||
|
|
||||||
if !inReplyTo.isMine {
|
if !mentions.isEmpty {
|
||||||
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
|
compositionViewModel.text = mentions.joined(separator: " ").appending(" ")
|
||||||
} else {
|
|
||||||
compositionViewModel.text = ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compositionViewModel.contentWarning = inReplyTo.spoilerText
|
compositionViewModel.contentWarning = inReplyTo.spoilerText
|
||||||
compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty
|
compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty
|
||||||
} else if let directMessageTo = directMessageTo {
|
} else if let directMessageTo = directMessageTo {
|
||||||
|
|
Loading…
Reference in a new issue