Stories: Start expiration on receipt
This commit is contained in:
@@ -1222,6 +1222,10 @@ export function reducer(
|
||||
isDownloaded(newStory.attachment);
|
||||
const hasAttachmentFailed =
|
||||
hasFailed(newStory.attachment) && !hasFailed(prevStory.attachment);
|
||||
const hasExpirationChanged =
|
||||
(newStory.expirationStartTimestamp &&
|
||||
!prevStory.expirationStartTimestamp) ||
|
||||
(newStory.expireTimer && !prevStory.expireTimer);
|
||||
const readStatusChanged = prevStory.readStatus !== newStory.readStatus;
|
||||
const reactionsChanged =
|
||||
prevStory.reactions?.length !== newStory.reactions?.length;
|
||||
@@ -1237,6 +1241,7 @@ export function reducer(
|
||||
hasAttachmentDownloaded ||
|
||||
hasAttachmentFailed ||
|
||||
hasBeenDeleted ||
|
||||
hasExpirationChanged ||
|
||||
hasSendStateChanged ||
|
||||
readStatusChanged ||
|
||||
reactionsChanged;
|
||||
|
Reference in New Issue
Block a user