Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Use postDeleted action creator
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey committed Feb 14, 2019
1 parent 367102a commit 5dd47d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actions/websocket_actions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
getCustomEmojiForReaction,
getPosts,
getProfilesAndStatusesForPosts,
postDeleted,
receivedPost,
receivedPostsInChannel,
} from 'mattermost-redux/actions/posts';
Expand Down Expand Up @@ -479,7 +480,7 @@ function handlePostEditEvent(msg) {

function handlePostDeleteEvent(msg) {
const post = JSON.parse(msg.data.post);
dispatch({type: PostTypes.POST_DELETED, data: post});
dispatch(postDeleted(post));
}

async function handleTeamAddedEvent(msg) {
Expand Down

0 comments on commit 5dd47d6

Please sign in to comment.