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

Commit

Permalink
getPostIdsInChannel selector (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
enahum authored and hmhealey committed Aug 28, 2020
1 parent f74e4e1 commit 94783f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mattermost-redux/src/selectors/entities/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,3 +431,10 @@ export const getCurrentUsersLatestPost = createSelector(
return lastPost;
}
);

export const getPostIdsInChannel = createIdsSelector(
(state, channelId) => state.entities.posts.postsInChannel[channelId],
(postIdsInChannel) => {
return postIdsInChannel || [];
}
);

0 comments on commit 94783f0

Please sign in to comment.