Improvements to sound on/off in story viewer

This commit is contained in:
Josh Perez 2022-07-29 15:27:02 -04:00 committed by GitHub
parent f1c9db543e
commit 58aaf1d0e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 71 additions and 23 deletions

View file

@ -8,6 +8,7 @@ import type { PropsType } from './StoryViewer';
import enMessages from '../../_locales/en/messages.json';
import { SendStatus } from '../messages/MessageSendState';
import { StoryViewer } from './StoryViewer';
import { VIDEO_MP4 } from '../types/MIME';
import { fakeAttachment } from '../test-both/helpers/fakeAttachment';
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
import { getFakeStoryView } from '../test-both/helpers/getFakeStory';
@ -49,6 +50,7 @@ export default {
},
queueStoryDownload: { action: true },
renderEmojiPicker: { action: true },
showToast: { action: true },
skinTone: {
defaultValue: 0,
},
@ -92,7 +94,15 @@ export const MultiStory = Template.bind({});
MultiStory.args = {
currentIndex: 2,
numStories: 7,
story: getFakeStoryView('/fixtures/snow.jpg'),
story: {
...getFakeStoryView(),
attachment: fakeAttachment({
contentType: VIDEO_MP4,
fileName: 'pixabay-Soap-Bubble-7141.mp4',
url: '/fixtures/kitten-4-112-112.jpg',
screenshotPath: '/fixtures/kitten-4-112-112.jpg',
}),
},
};
MultiStory.story = {
name: 'Multi story',