diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-05-23 10:17:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-23 10:17:06 -0400 |
commit | 69f3f2fdce4ae21a037ca61d753279efcc70f0ec (patch) | |
tree | dea69385c8bd3190d7bc2f72563b929ecdf527f2 /webapp/actions/post_actions.jsx | |
parent | 52f73c30cafd6afaa11361b05972e25ebc223a81 (diff) | |
download | chat-69f3f2fdce4ae21a037ca61d753279efcc70f0ec.tar.gz chat-69f3f2fdce4ae21a037ca61d753279efcc70f0ec.tar.bz2 chat-69f3f2fdce4ae21a037ca61d753279efcc70f0ec.zip |
PLT-6282 Make post list stay visible when post textbox height changes (#6323)
* PLT-6282 Changed post drafts to use an action when being stored
* PLT-6282 Triggered post list to update scroll position when post draft changes
* PLT-6282 Changed SuggestionBox to complete suggestions without an event
Diffstat (limited to 'webapp/actions/post_actions.jsx')
-rw-r--r-- | webapp/actions/post_actions.jsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx index 969c764f1..d55a0d578 100644 --- a/webapp/actions/post_actions.jsx +++ b/webapp/actions/post_actions.jsx @@ -499,3 +499,11 @@ export function performSearch(terms, isMentionSearch, success, error) { } ); } + +export function storePostDraft(channelId, draft) { + AppDispatcher.handleViewAction({ + type: ActionTypes.POST_DRAFT_CHANGED, + channelId, + draft + }); +} |