Skip to content

Commit

Permalink
Fetch policy chats after deleting a member so that the room updates c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
Gonals committed Apr 1, 2022
1 parent 50496a0 commit e8a2003
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 e8a2003

Please sign in to comment.