Fix ComposeOptions.visibility not applied (#1605)
This commit is contained in:
parent
ce2ee660ae
commit
2994af7091
|
@ -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…
Reference in New Issue