Fixes going to oldest unread story when viewing
This commit is contained in:
parent
87a5ddc437
commit
ff87caf526
4 changed files with 30 additions and 32 deletions
|
@ -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()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue