Allow for 'error' status on incoming messages not just outgoing

This commit is contained in:
Scott Nonnenberg 2018-08-06 09:04:27 -07:00
parent 1d18c5686d
commit 4b3ddef955

View file

@ -389,13 +389,12 @@
}; };
}, },
getMessagePropStatus() { getMessagePropStatus() {
if (!this.isOutgoing()) {
return null;
}
if (this.hasErrors()) { if (this.hasErrors()) {
return 'error'; return 'error';
} }
if (!this.isOutgoing()) {
return null;
}
const readBy = this.get('read_by') || []; const readBy = this.get('read_by') || [];
if (readBy.length > 0) { if (readBy.length > 0) {