Round Video: Fix sound on deletion (#5730)
This commit is contained in:
parent
370aa67112
commit
d8af6e422d
1
src/@types/global.d.ts
vendored
1
src/@types/global.d.ts
vendored
@ -22,6 +22,7 @@ declare namespace React {
|
|||||||
|
|
||||||
interface VideoHTMLAttributes {
|
interface VideoHTMLAttributes {
|
||||||
srcObject?: MediaStream;
|
srcObject?: MediaStream;
|
||||||
|
defaultMuted?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface MouseEvent {
|
interface MouseEvent {
|
||||||
|
|||||||
@ -178,23 +178,19 @@
|
|||||||
color: var(--color-text-secondary);
|
color: var(--color-text-secondary);
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
|
|
||||||
&.unread::after {
|
&.unread::after {
|
||||||
content: "•";
|
content: "";
|
||||||
font-size: 2rem;
|
display: inline-block;
|
||||||
line-height: 1.3125rem;
|
width: 0.5rem;
|
||||||
color: var(--accent-color);
|
height: 0.5rem;
|
||||||
|
background-color: var(--accent-color);
|
||||||
|
border-radius: 50%;
|
||||||
margin-inline-start: 0.125rem;
|
margin-inline-start: 0.125rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.is-ios & {
|
|
||||||
.voice-duration.unread::after {
|
|
||||||
margin-bottom: 0.4375rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(.own) .voice-duration span {
|
&:not(.own) .voice-duration span {
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,8 +96,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.unread::after {
|
.unread::after {
|
||||||
content: "•";
|
content: "";
|
||||||
font-size: 2rem;
|
display: inline-block;
|
||||||
|
width: 0.5rem;
|
||||||
|
height: 0.5rem;
|
||||||
|
background-color: currentColor;
|
||||||
|
border-radius: 50%;
|
||||||
margin-inline-start: 0.125rem;
|
margin-inline-start: 0.125rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -287,6 +287,7 @@ const RoundVideo: FC<OwnProps> = ({
|
|||||||
autoPlay={!shouldRenderSpoiler}
|
autoPlay={!shouldRenderSpoiler}
|
||||||
disablePictureInPicture
|
disablePictureInPicture
|
||||||
muted={!isActivated}
|
muted={!isActivated}
|
||||||
|
defaultMuted
|
||||||
loop={!isActivated}
|
loop={!isActivated}
|
||||||
playsInline
|
playsInline
|
||||||
isPriority
|
isPriority
|
||||||
|
|||||||
@ -252,6 +252,7 @@ const Video = <T,>({
|
|||||||
src={fullMediaData}
|
src={fullMediaData}
|
||||||
className={buildClassName('full-media', withBlurredBackground && 'with-blurred-bg')}
|
className={buildClassName('full-media', withBlurredBackground && 'with-blurred-bg')}
|
||||||
canPlay={isPlayAllowed && isIntersectingForPlaying && !isUnsupported}
|
canPlay={isPlayAllowed && isIntersectingForPlaying && !isUnsupported}
|
||||||
|
defaultMuted
|
||||||
muted
|
muted
|
||||||
loop
|
loop
|
||||||
playsInline
|
playsInline
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user