markStoryRead: More logging in unusual cases

This commit is contained in:
Alvaro 2022-10-03 17:10:20 -06:00 committed by GitHub
parent b65890b07d
commit 44db76531e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 47 additions and 9 deletions

View file

@ -145,8 +145,15 @@ export const StoryViewer = ({
StoryViewType | undefined
>();
const { attachment, canReply, isHidden, messageId, sendState, timestamp } =
story;
const {
attachment,
canReply,
isHidden,
messageId,
messageIdForLogging,
sendState,
timestamp,
} = story;
const {
acceptedMessageRequest,
avatarPath,
@ -323,8 +330,8 @@ export const StoryViewer = ({
useEffect(() => {
markStoryRead(messageId);
log.info('stories.markStoryRead', { messageId });
}, [markStoryRead, messageId]);
log.info('stories.markStoryRead', { message: messageIdForLogging });
}, [markStoryRead, messageId, messageIdForLogging]);
const canFreelyNavigateStories =
storyViewMode === StoryViewModeType.All ||