Log when a story gets an expiration timer set
This commit is contained in:
parent
1aa7d4cadb
commit
68398823e3
1 changed files with 7 additions and 0 deletions
|
@ -3042,6 +3042,13 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!message.get('expirationStartTimestamp')) {
|
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'));
|
message.set('expirationStartTimestamp', message.get('timestamp'));
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue