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

@ -55,6 +55,14 @@ export const ToastManager = ({
);
}
if (toastType === ToastType.StoryMuted) {
return (
<Toast onClose={hideToast} timeout={3 * SECOND}>
{i18n('Stories__toast--hasNoSound')}
</Toast>
);
}
strictAssert(
toastType === undefined,
`Unhandled toast of type: ${toastType}`