Cache messages on receipt, remove from cache when processed
FREEBIE
This commit is contained in:
parent
e6859a3684
commit
bd0050b6c6
13 changed files with 683 additions and 118 deletions
|
@ -43,7 +43,6 @@
|
|||
});
|
||||
}).then(function(message) {
|
||||
if (message) {
|
||||
this.remove(receipt);
|
||||
var deliveries = message.get('delivered') || 0;
|
||||
message.save({
|
||||
delivered: deliveries + 1
|
||||
|
@ -55,7 +54,9 @@
|
|||
if (conversation) {
|
||||
conversation.trigger('delivered', message);
|
||||
}
|
||||
});
|
||||
|
||||
this.remove(receipt);
|
||||
}.bind(this));
|
||||
// TODO: consider keeping a list of numbers we've
|
||||
// successfully delivered to?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue