Avoid a “publishing changes during view updates” warning.

This commit is contained in:
shannon 2024-12-16 15:38:55 -05:00
parent 9de3ae09b9
commit 335e682dc2

View File

@ -32,8 +32,10 @@ extension ComposeContentViewModel: MetaTextDelegate {
case .content:
let textInput = textStorage.string
self.content = textInput
Task {
self.content = textInput
}
let content = MastodonContent(
content: textInput,
emojis: [:] // customEmojiViewModel?.emojis.value.asDictionary ?? [:]