Stories: Start expiration on receipt
This commit is contained in:
parent
d03b53d47e
commit
58f0012f14
2 changed files with 11 additions and 0 deletions
|
@ -2646,6 +2646,12 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
!isExpirationTimerUpdate(dataMessage)
|
||||
) {
|
||||
message.set({ expireTimer: dataMessage.expireTimer });
|
||||
if (isStory(message.attributes)) {
|
||||
log.info(`${idLog}: Starting story expiration`);
|
||||
message.set({
|
||||
expirationStartTimestamp: dataMessage.timestamp,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasGroupV2Prop && !isStory(message.attributes)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue