Fixup delivery receipts
Uses app-level timestamps for outgoing messages. Adds timestamp property to the outgoing jsonData. Triggers a runtime event to notify frontend on delivery receipts. Renders delivered messages with a 'delivered' class.
This commit is contained in:
parent
348b5a53b1
commit
ccc98d2f3d
5 changed files with 25 additions and 16 deletions
|
@ -85,6 +85,10 @@
|
|||
})
|
||||
);
|
||||
|
||||
if (this.model.get('delivered')) {
|
||||
this.$el.addClass('delivered');
|
||||
}
|
||||
|
||||
var errors = this.model.get('errors');
|
||||
if (errors && errors.length) {
|
||||
this.$el.find('.message').append(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue