Skip to content

Commit

Permalink
Merge pull request #28882 from tsa321/fouroct
Browse files Browse the repository at this point in the history
Fix not all split bills are registered when leaving offline mode
  • Loading branch information
tylerkaraszewski authored Oct 6, 2023
2 parents e8010b9 + 74a840e commit dcd25d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,7 @@ function shouldReportBeInOptionList(report, currentReportId, isInGSDMode, betas,
* @returns {Array|undefined}
*/
function getChatByParticipants(newParticipantList) {
newParticipantList.sort();
const sortedNewParticipantList = _.sortBy(newParticipantList);
return _.find(allReports, (report) => {
// If the report has been deleted, or there are no participants (like an empty #admins room) then skip it
if (
Expand All @@ -3068,7 +3068,7 @@ function getChatByParticipants(newParticipantList) {
}

// Only return the chat if it has all the participants
return _.isEqual(newParticipantList, _.sortBy(report.participantAccountIDs));
return _.isEqual(sortedNewParticipantList, _.sortBy(report.participantAccountIDs));
});
}

Expand Down

0 comments on commit dcd25d2

Please sign in to comment.