fix delete&redraft losing toot text (#1599)

This commit is contained in:
Konrad Pozniak 2019-12-21 15:56:07 +01:00 committed by GitHub
parent 82e13db28f
commit eca3b5379e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -406,10 +406,9 @@ class ComposeViewModel
} }
composeOptions?.savedTootUid?.let { uid -> savedTootUid = composeOptions?.savedTootUid ?: 0
this.savedTootUid = uid startingText = composeOptions?.tootText
startingText = composeOptions.tootText
}
val tootVisibility = composeOptions?.visibility ?: Status.Visibility.UNKNOWN val tootVisibility = composeOptions?.visibility ?: Status.Visibility.UNKNOWN
if (tootVisibility.num != Status.Visibility.UNKNOWN.num) { if (tootVisibility.num != Status.Visibility.UNKNOWN.num) {