Re-enable read receipts and read syncs (#1604)
This commit is contained in:
parent
04fb736e8b
commit
efb5c10d36
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue