From 04e364f4f7f9e132c9929f44851a5608a5c0bf21 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 5 Jul 2017 16:28:32 -0400 Subject: Do not scroll center channel to bottom when posting in RHS (#6852) --- webapp/actions/global_actions.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'webapp/actions') 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 }); } -- cgit v1.2.3-1-g7c22