Log when a story gets an expiration timer set

This commit is contained in:
Josh Perez 2022-08-24 19:34:10 -04:00 committed by GitHub
parent 1aa7d4cadb
commit 68398823e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3042,6 +3042,13 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
}
if (!message.get('expirationStartTimestamp')) {
log.info(
`modifyTargetMessage/${this.idForLogging()}: setting story expiration`,
{
expirationStartTimestamp: message.get('timestamp'),
expireTimer: message.get('expireTimer'),
}
);
message.set('expirationStartTimestamp', message.get('timestamp'));
changed = true;
}