Update delivered_to for outgoing with earlier delivery receipts

This commit is contained in:
Scott Nonnenberg 2018-12-14 14:08:59 -08:00
parent f9ea7be61f
commit c0be4718fc

View file

@ -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'),
]),
})
);
}