From 335e682dc264e1834b573b4a01ccb4cf4297ebe1 Mon Sep 17 00:00:00 2001 From: shannon Date: Mon, 16 Dec 2024 15:38:55 -0500 Subject: [PATCH] =?UTF-8?q?Avoid=20a=20=E2=80=9Cpublishing=20changes=20dur?= =?UTF-8?q?ing=20view=20updates=E2=80=9D=20warning.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComposeContentViewModel+MetaTextDelegate.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/ComposeContentViewModel+MetaTextDelegate.swift b/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/ComposeContentViewModel+MetaTextDelegate.swift index 9f8330c8ef..4b7bf6f5f5 100644 --- a/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/ComposeContentViewModel+MetaTextDelegate.swift +++ b/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/ComposeContentViewModel+MetaTextDelegate.swift @@ -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 ?? [:]