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