Skip to content

Commit

Permalink
Avoid a “publishing changes during view updates” warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
whattherestimefor committed Dec 16, 2024
1 parent 9de3ae0 commit 335e682
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? [:]
Expand Down

0 comments on commit 335e682

Please sign in to comment.