Skip to content

Commit

Permalink
Update delivered_to for outgoing with earlier delivery receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Jan 4, 2019
1 parent f9ea7be commit c0be471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/models/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1165,9 +1165,12 @@
conversation,
message
);
receipts.forEach(() =>
receipts.forEach(receipt =>
message.set({
delivered: (message.get('delivered') || 0) + 1,
delivered_to: _.union(message.get('delivered_to') || [], [
receipt.get('source'),
]),
})
);
}
Expand Down

0 comments on commit c0be471

Please sign in to comment.