Skip to content

Commit

Permalink
Fix the determination of the post's recipient list
Browse files Browse the repository at this point in the history
The recipients list of a post was determined incorrectly if some of the post groups were not on the page
  • Loading branch information
davidmz committed Oct 7, 2024
1 parent 6f6b49c commit 6a1ffe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.135.0] - Not released
### Fixed
- The recipients list of a post was determined incorrectly if some of the post
groups were not on the page.

## [1.134.4] - 2024-08-26
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/components/select-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const joinPostData = (state) => (postId) => {
const isDirectToSelf = userId === post.createdBy && subscriptionType === 'Directs';
return !isDirectToSelf ? userId : false;
})
.map((userId) => state.subscribers[userId])
.map((userId) => state.subscribers[userId] || state.users[userId])
.filter((user) => user);

// All recipient names and the post's author name.
Expand Down

0 comments on commit 6a1ffe6

Please sign in to comment.