Fixes going to oldest unread story when viewing

This commit is contained in:
Josh Perez 2022-05-03 12:02:43 -04:00 committed by GitHub
parent 87a5ddc437
commit ff87caf526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 32 deletions

View file

@ -39,7 +39,6 @@ function getDefaultProps(): PropsType {
preferredReactionEmoji: ['❤️', '👍', '👎', '😂', '😮', '😢'],
queueStoryDownload: action('queueStoryDownload'),
renderEmojiPicker: () => <div />,
selectedStoryIndex: 0,
stories: [
{
attachment: fakeAttachment({
@ -109,24 +108,6 @@ story.add('Multi story', () => {
);
});
story.add('So many stories (start on story 4)', () => {
const sender = getDefaultConversation();
return (
<StoryViewer
{...getDefaultProps()}
selectedStoryIndex={5}
stories={Array(20).fill({
attachment: fakeAttachment({
url: '/fixtures/snow.jpg',
}),
messageId: '123',
sender,
timestamp: Date.now(),
})}
/>
);
});
story.add('Caption', () => (
<StoryViewer
{...getDefaultProps()}