Upgrade Storybook
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
8c966dfbd8
commit
502ea174ab
328 changed files with 10863 additions and 12432 deletions
|
@ -17,6 +17,7 @@ import type { LocalizerType } from '../types/Util';
|
|||
import type { MediaItemType, MediaItemMessageType } from '../types/MediaItem';
|
||||
import * as GoogleChrome from '../util/GoogleChrome';
|
||||
import * as log from '../logging/log';
|
||||
import * as Errors from '../types/errors';
|
||||
import { Avatar, AvatarSize } from './Avatar';
|
||||
import { IMAGE_PNG, isImage, isVideo } from '../types/MIME';
|
||||
import { formatDateTimeForAttachment } from '../util/timestamp';
|
||||
|
@ -230,7 +231,9 @@ export function Lightbox({
|
|||
|
||||
if (videoElement.paused) {
|
||||
onMediaPlaybackStart();
|
||||
void videoElement.play();
|
||||
void videoElement.play().catch(error => {
|
||||
log.error('Lightbox: Failed to play video', Errors.toLogFormat(error));
|
||||
});
|
||||
} else {
|
||||
videoElement.pause();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue