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
This commit is contained in:
Konrad Pozniak 2024-06-05 19:36:48 +02:00 committed by GitHub
commit adbe694471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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