diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-02-25 18:43:10 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-02-25 18:43:10 -0500 |
commit | 3dbe580b05489209a5222d90f35904e0544d61a1 (patch) | |
tree | fcb499e3378ff380b47b8140e9eda47f7edb197a /web/react | |
parent | 971e9f89dac2e749df9bb273cdd7cfb74496b1ce (diff) | |
download | chat-3dbe580b05489209a5222d90f35904e0544d61a1.tar.gz chat-3dbe580b05489209a5222d90f35904e0544d61a1.tar.bz2 chat-3dbe580b05489209a5222d90f35904e0544d61a1.zip |
Fix replying from search result
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/dispatcher/event_helpers.jsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/react/dispatcher/event_helpers.jsx b/web/react/dispatcher/event_helpers.jsx index 47a16950e..367347d4b 100644 --- a/web/react/dispatcher/event_helpers.jsx +++ b/web/react/dispatcher/event_helpers.jsx @@ -47,8 +47,15 @@ export function emitPostFocusRightHandSideFromSearch(post, isMentionSearch) { post.id, (data) => { AppDispatcher.handleServerAction({ + type: ActionTypes.RECEIVED_POSTS, + id: post.channel_id, + numRequested: 0, + post_list: data + }); + + AppDispatcher.handleServerAction({ type: ActionTypes.RECEIVED_POST_SELECTED, - post_list: data, + postId: Utils.getRootId(post), from_search: SearchStore.getSearchTerm() }); |