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; 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,