Use just the timestamp for story expiration

This commit is contained in:
Josh Perez 2022-08-17 13:56:41 -04:00 committed by GitHub
parent 16222f6092
commit 5ec78374d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 15 deletions

View file

@ -3042,13 +3042,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
}
if (!message.get('expirationStartTimestamp')) {
message.set(
'expirationStartTimestamp',
Math.min(
message.get('serverTimestamp') || message.get('timestamp'),
Date.now()
)
);
message.set('expirationStartTimestamp', message.get('timestamp'));
changed = true;
}
}