Use just the timestamp for story expiration
This commit is contained in:
parent
16222f6092
commit
5ec78374d1
3 changed files with 4 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue