Mark onboarding story read again, even if it's not unread
This commit is contained in:
parent
5c62fa0a14
commit
61b4558140
1 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue