Allow for 'error' status on incoming messages not just outgoing
This commit is contained in:
parent
1d18c5686d
commit
4b3ddef955
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue