Skip to content

Commit

Permalink
Merge pull request #8437 from Expensify/alberto-archiveRoom
Browse files Browse the repository at this point in the history
Fetch policy chats after deleting a member so that the room updates correctly
  • Loading branch information
Luke9389 authored Apr 11, 2022
2 parents 0596be5 + e8a2003 commit f9987f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ function removeMembers(members, policyID) {
})
.then((data) => {
if (data.jsonCode === 200) {
if (!_.isEmpty(data.policyExpenseChatIDs)) {
Report.fetchChatReportsByIDs(data.policyExpenseChatIDs);
}
return;
}
const policyDataWithMembersRemoved = _.clone(allPolicies[key]);
Expand Down

0 comments on commit f9987f9

Please sign in to comment.