Preserve scroll context when posting a status.
This commit is contained in:
parent
2d0d5cd7b9
commit
547dfd770a
@ -176,7 +176,10 @@ update msg model =
|
|||||||
{ model | viewer = viewer } ! [ commands ]
|
{ model | viewer = viewer } ! [ commands ]
|
||||||
|
|
||||||
SubmitDraft ->
|
SubmitDraft ->
|
||||||
model ! [ Command.postStatus (List.head model.clients) <| toStatusRequestBody model.draft ]
|
model
|
||||||
|
! [ Command.postStatus (List.head model.clients) <|
|
||||||
|
toStatusRequestBody model.draft
|
||||||
|
]
|
||||||
|
|
||||||
LoadAccount accountId ->
|
LoadAccount accountId ->
|
||||||
{ model
|
{ model
|
||||||
|
@ -172,10 +172,7 @@ update msg model =
|
|||||||
draft =
|
draft =
|
||||||
Update.Draft.empty
|
Update.Draft.empty
|
||||||
in
|
in
|
||||||
{ model | draft = draft }
|
{ model | draft = draft } ! [ Command.updateDomStatus draft.status ]
|
||||||
! [ Command.scrollColumnToTop "home-timeline"
|
|
||||||
, Command.updateDomStatus draft.status
|
|
||||||
]
|
|
||||||
|
|
||||||
StatusDeleted result ->
|
StatusDeleted result ->
|
||||||
case result of
|
case result of
|
||||||
|
Loading…
Reference in New Issue
Block a user