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

This commit is contained in:
Scott Nonnenberg 2017-10-24 10:29:45 -07:00 committed by GitHub
parent 04fb736e8b
commit efb5c10d36

View file

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