Fix ComposeOptions.visibility not applied (#1605)

main
kyori19 5 years ago committed by Konrad Pozniak
parent 03c66d62df
commit 40b859a06e
  1. 2
      app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeViewModel.kt

@ -372,7 +372,6 @@ class ComposeViewModel
val replyVisibility = composeOptions?.replyVisibility ?: Status.Visibility.UNKNOWN
startingVisibility = Status.Visibility.byNum(
preferredVisibility.num.coerceAtLeast(replyVisibility.num))
statusVisibility.value = startingVisibility
inReplyToId = composeOptions?.inReplyToId
@ -414,6 +413,7 @@ class ComposeViewModel
if (tootVisibility.num != Status.Visibility.UNKNOWN.num) {
startingVisibility = tootVisibility
}
statusVisibility.value = startingVisibility
val mentionedUsernames = composeOptions?.mentionedUsernames
if (mentionedUsernames != null) {
val builder = StringBuilder()

Loading…
Cancel
Save