Skip to content

Commit

Permalink
[lib] Fix primary links reducer
Browse files Browse the repository at this point in the history
Summary:
While testing invite links on multiple clients I realized that they don't get updated properly.

Depends on D8444

Test Plan: Update a link on one client and check if it gets updated on the other (on native drawer open or web page focus).

Reviewers: kamil, inka

Reviewed By: inka

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D8461
  • Loading branch information
palys-swm committed Jul 10, 2023
1 parent aafdbef commit 3ff8ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reducers/invite-links-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function reduceInviteLinks(
const links = {};
for (const link of action.payload.links) {
links[link.communityID] = {
primaryLink: link,
...state.links[link.communityID],
primaryLink: link,
};
}
return {
Expand Down

0 comments on commit 3ff8ce6

Please sign in to comment.