Re-enable read receipts and read syncs (#1604)

pull/749/head
Scott Nonnenberg 8 years ago committed by GitHub
parent 04fb736e8b
commit efb5c10d36

@ -784,10 +784,11 @@
'it was not in messageCollection.'); 'it was not in messageCollection.');
} }
promises.push(m.markRead()); promises.push(m.markRead());
var errors = m.get('errors');
return { return {
sender : m.get('source'), sender : m.get('source'),
timestamp : m.get('sent_at'), timestamp : m.get('sent_at'),
hasErrors : Boolean(m.get('errors')) hasErrors : Boolean(errors && errors.length)
}; };
}.bind(this)); }.bind(this));

Loading…
Cancel
Save