From 3dbe580b05489209a5222d90f35904e0544d61a1 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 25 Feb 2016 18:43:10 -0500 Subject: Fix replying from search result --- web/react/dispatcher/event_helpers.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 @@ -46,9 +46,16 @@ export function emitPostFocusRightHandSideFromSearch(post, isMentionSearch) { post.channel_id, 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() }); -- cgit v1.2.3-1-g7c22