Do not show timestamp if timestamp matches sent_at
This commit is contained in:
parent
efde909484
commit
9af523c4fc
1 changed files with 6 additions and 1 deletions
|
@ -361,10 +361,15 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
status = SendStatus.Read;
|
status = SendStatus.Read;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const statusTimestamp = sendState?.updatedAt;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...findAndFormatContact(id),
|
...findAndFormatContact(id),
|
||||||
status,
|
status,
|
||||||
statusTimestamp: sendState?.updatedAt,
|
statusTimestamp:
|
||||||
|
statusTimestamp === this.get('sent_at')
|
||||||
|
? undefined
|
||||||
|
: statusTimestamp,
|
||||||
errors: errorsForContact,
|
errors: errorsForContact,
|
||||||
isOutgoingKeyError,
|
isOutgoingKeyError,
|
||||||
isUnidentifiedDelivery,
|
isUnidentifiedDelivery,
|
||||||
|
|
Loading…
Reference in a new issue