summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-05 16:28:32 -0400
committerenahum <nahumhbl@gmail.com>2017-07-05 16:28:32 -0400
commit04e364f4f7f9e132c9929f44851a5608a5c0bf21 (patch)
tree5d821e69c2a8db7254f9c6afa13bf3f4955a3736 /webapp/actions
parentd59cac0314b4cec2c2dd5dca305928e2b363928a (diff)
downloadchat-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')
-rw-r--r--webapp/actions/global_actions.jsx5
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
});
}