Message / Voice: Color fixes (#1425)

This commit is contained in:
Alexander Zinchuk 2021-09-06 15:29:07 +03:00
parent 37f5d026bb
commit e01ccf27d4
2 changed files with 9 additions and 3 deletions

View File

@ -144,7 +144,7 @@
height: 0.4rem;
border-radius: 50%;
background-color: var(--color-text-secondary);
background-color: var(--accent-color);
}
}
}

View File

@ -250,8 +250,14 @@ const Audio: FC<OwnProps> = ({
const isOwn = isOwnMessage(message);
const renderedWaveform = useMemo(
() => voice && renderWaveform(voice, playProgress, isOwn, theme, seekerRef),
[voice, playProgress, isOwn, theme],
() => voice && renderWaveform(
voice,
(isMediaUnread && !isOwn) ? 1 : playProgress,
isOwn,
theme,
seekerRef,
),
[voice, isMediaUnread, isOwn, playProgress, theme],
);
const fullClassName = buildClassName(