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
1 changed files with 3 additions and 4 deletions

View File

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