Ensure that only messages with storyId have a StoryContext

This commit is contained in:
Scott Nonnenberg 2022-03-04 15:20:47 -08:00 committed by GitHub
parent dc9d186a2a
commit 78fd36e880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -457,7 +457,9 @@ async function getMessageSendData({
preview,
quote,
sticker,
storyContextTimestamp: message.get('sent_at'),
storyContextTimestamp: message.get('storyId')
? message.get('sent_at')
: undefined,
};
}