1
0
Fork 0

Fix #57: Reply preserving initial status properties. (#62)

Preserve visibility, sensitivity and spoiler text in replies.
This commit is contained in:
Nicolas Perriault 2017-04-25 18:45:11 +02:00 committed by GitHub
parent a2e4014b56
commit 299a0236dc
1 changed files with 7 additions and 0 deletions

View File

@ -324,6 +324,13 @@ updateDraft draftMsg draft =
draft.status
else
mention ++ " " ++ draft.status
, sensitive = Maybe.withDefault False status.sensitive
, spoiler_text =
if status.spoiler_text == "" then
Nothing
else
Just status.spoiler_text
, visibility = status.visibility
}
! [ Dom.focus "status" |> Task.attempt (always NoOp) ]