Update delivered_to for outgoing with earlier delivery receipts
This commit is contained in:
parent
f9ea7be61f
commit
c0be4718fc
1 changed files with 4 additions and 1 deletions
|
@ -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'),
|
||||
]),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue