Fix video play lightbox autostart (#1920)

* disable sending on enter while composing

Fixes #1899 #1497

* ask confirmation before deleting account

* fix app start delete db when passowrd error

* fix double dialog issue with delete account

* fixup login screen

* Fix video autoplay start when not initialized

Relates #1904
pull/1921/head
Audric Ackermann 4 years ago committed by GitHub
parent 525f9dcfb2
commit 2e0cf0bca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -235,8 +235,8 @@ export const LightboxObject = ({
const isVideoTypeSupported = GoogleChrome.isVideoTypeSupported(contentType);
if (isVideoTypeSupported) {
if (urlToLoad) {
if (videoRef?.current.paused) {
void videoRef.current.play();
if (videoRef?.current?.paused) {
void videoRef?.current?.play();
}
}

Loading…
Cancel
Save