From adbe694471a61cdac22f1febe6dc0ced7ed1e0c9 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 5 Jun 2024 19:36:48 +0200 Subject: [PATCH] correctly set currentContent in ComposeViewModel.setup (#4484) Without this, the check that decides if the dialog on close should be shown operates on incorrect data. closes #4434 --- .../keylesspalace/tusky/components/compose/ComposeViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt index 652ba1cda..f9fabfd72 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt @@ -525,6 +525,7 @@ class ComposeViewModel @Inject constructor( scheduledTootId = composeOptions?.scheduledTootId originalStatusId = composeOptions?.statusId startingText = composeOptions?.content + currentContent = composeOptions?.content postLanguage = composeOptions?.language val tootVisibility = composeOptions?.visibility ?: Status.Visibility.UNKNOWN