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
|
@ -27,9 +27,9 @@
|
|||
message.get('source') === receipt.get('sender'));
|
||||
});
|
||||
if (message) {
|
||||
this.remove(receipt);
|
||||
message.markRead(receipt.get('read_at')).then(function() {
|
||||
this.notifyConversation(message);
|
||||
this.remove(receipt);
|
||||
}.bind(this));
|
||||
} else {
|
||||
console.log('No message for read receipt');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue