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:
lilia 2014-12-21 21:01:21 -08:00
commit ccc98d2f3d
5 changed files with 25 additions and 16 deletions

View file

@ -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(