diff options
Diffstat (limited to 'webapp/actions/post_actions.jsx')
-rw-r--r-- | webapp/actions/post_actions.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx index 266370f60..36abfc2be 100644 --- a/webapp/actions/post_actions.jsx +++ b/webapp/actions/post_actions.jsx @@ -20,6 +20,12 @@ import Constants from 'utils/constants.jsx'; const ActionTypes = Constants.ActionTypes; const Preferences = Constants.Preferences; +// Redux actions +import store from 'stores/redux_store.jsx'; +const dispatch = store.dispatch; +const getState = store.getState; +import {getProfilesByIds} from 'mattermost-redux/actions/users'; + export function handleNewPost(post, msg) { let websocketMessageProps = {}; if (msg) { @@ -310,7 +316,7 @@ export function loadProfilesForPosts(posts) { return; } - AsyncClient.getProfilesByIds(list); + getProfilesByIds(list)(dispatch, getState); } export function addReaction(channelId, postId, emojiName) { |