mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Mark onboarding story read again, even if it's not unread
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user