summaryrefslogtreecommitdiffstats
path: root/web/react/dispatcher
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-02-26 11:19:05 -0500
committerChristopher Speller <crspeller@gmail.com>2016-02-26 11:19:05 -0500
commit53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5 (patch)
tree53043d11186353b54e107466e72c55178e874a22 /web/react/dispatcher
parent3734145f9676946792a3efab842812e547cbdab1 (diff)
parentd563bf11527698bef02fc4b17852e260ba43f4e8 (diff)
downloadchat-53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5.tar.gz
chat-53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5.tar.bz2
chat-53d0bce1da190d45ffd8dbf4afcf7e8b2878bad5.zip
Merge pull request #2257 from mattermost/rhs-profile-fix
Final fixes for user store changes
Diffstat (limited to 'web/react/dispatcher')
-rw-r--r--web/react/dispatcher/event_helpers.jsx9
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()
});