Skip to content

Commit

Permalink
Mark onboarding story read again, even if it's not unread
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Nov 10, 2023
1 parent 5c62fa0 commit 61b4558
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ts/state/ducks/stories.ts
Expand Up @@ -380,13 +380,6 @@ function markStoryRead(
return;
}

if (matchingStory.readStatus !== ReadStatus.Unread) {
log.warn(
`markStoryRead: not unread, ${messageId} read status: ${matchingStory.readStatus}`
);
return;
}

const message = await __DEPRECATED$getMessageById(messageId);

if (!message) {
Expand Down Expand Up @@ -416,6 +409,13 @@ function markStoryRead(
);
}

if (matchingStory.readStatus !== ReadStatus.Unread) {
log.warn(
`markStoryRead: not unread, ${messageId} read status: ${matchingStory.readStatus}`
);
return;
}

const storyReadDate = Date.now();

message.set(markViewed(message.attributes, storyReadDate));
Expand Down

0 comments on commit 61b4558

Please sign in to comment.