Do not show timestamp if timestamp matches sent_at

This commit is contained in:
Josh Perez 2021-10-15 18:59:42 -04:00 committed by GitHub
parent efde909484
commit 9af523c4fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,10 +361,15 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
status = SendStatus.Read;
}
const statusTimestamp = sendState?.updatedAt;
return {
...findAndFormatContact(id),
status,
statusTimestamp: sendState?.updatedAt,
statusTimestamp:
statusTimestamp === this.get('sent_at')
? undefined
: statusTimestamp,
errors: errorsForContact,
isOutgoingKeyError,
isUnidentifiedDelivery,