diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-07-05 16:28:32 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-07-05 16:28:32 -0400 |
commit | 04e364f4f7f9e132c9929f44851a5608a5c0bf21 (patch) | |
tree | 5d821e69c2a8db7254f9c6afa13bf3f4955a3736 /webapp/actions/global_actions.jsx | |
parent | d59cac0314b4cec2c2dd5dca305928e2b363928a (diff) | |
download | chat-04e364f4f7f9e132c9929f44851a5608a5c0bf21.tar.gz chat-04e364f4f7f9e132c9929f44851a5608a5c0bf21.tar.bz2 chat-04e364f4f7f9e132c9929f44851a5608a5c0bf21.zip |
Do not scroll center channel to bottom when posting in RHS (#6852)
Diffstat (limited to 'webapp/actions/global_actions.jsx')
-rw-r--r-- | webapp/actions/global_actions.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx index 2ab2692c0..33a1c8432 100644 --- a/webapp/actions/global_actions.jsx +++ b/webapp/actions/global_actions.jsx @@ -551,8 +551,9 @@ export function redirectUserToDefaultTeam() { } } -export function postListScrollChange() { +export function postListScrollChange(forceScrollToBottom = false) { AppDispatcher.handleViewAction({ - type: EventTypes.POST_LIST_SCROLL_CHANGE + type: EventTypes.POST_LIST_SCROLL_CHANGE, + value: forceScrollToBottom }); } |