Browse Source

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
pull/4490/head^2
Konrad Pozniak 2 years ago committed by GitHub
parent
commit
adbe694471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt

1
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

Loading…
Cancel
Save