Skip to content

Commit

Permalink
fix failed to add member isn't removed from announce room
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 2, 2024
1 parent e00e829 commit fddb6b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/actions/Policy/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ function buildAnnounceRoomMembersOnyxData(policyID: string, accountIDs: number[]
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${announceReport?.reportID}`,
value: {
participants: announceReport?.participants ?? null,
participants: accountIDs.reduce((acc, curr) => {
Object.assign(acc, {[curr]: null});
return acc;
}, {}),
pendingChatMembers: announceReport?.pendingChatMembers ?? null,
},
});
Expand Down

0 comments on commit fddb6b7

Please sign in to comment.