Fix ComposeOptions.visibility not applied (#1605)

This commit is contained in:
kyori19 2019-12-28 05:02:16 +09:00 committed by Konrad Pozniak
parent ce2ee660ae
commit 2994af7091
1 changed files with 1 additions and 1 deletions

View File

@ -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()