-
setIsPlayedDotVisible(false)}
/>
- {active && active.playing && (
-
{!withContentBelow && !collapseMetadata && (
diff --git a/ts/state/smart/MessageAudio.tsx b/ts/state/smart/MessageAudio.tsx
index 305e3af664a6..31f3d377db72 100644
--- a/ts/state/smart/MessageAudio.tsx
+++ b/ts/state/smart/MessageAudio.tsx
@@ -37,8 +37,6 @@ export type Props = {
textPending?: boolean;
timestamp: number;
- buttonRef: React.RefObject
;
-
computePeaks(url: string, barCount: number): Promise;
kickOffAttachmentDownload(): void;
onCorrupted(): void;
diff --git a/ts/state/smart/renderAudioAttachment.tsx b/ts/state/smart/renderAudioAttachment.tsx
index 4ecb37fe1865..6a0a347c52ee 100644
--- a/ts/state/smart/renderAudioAttachment.tsx
+++ b/ts/state/smart/renderAudioAttachment.tsx
@@ -7,7 +7,10 @@ import { GlobalAudioContext } from '../../components/GlobalAudioContext';
import type { Props as MessageAudioProps } from './MessageAudio';
import { SmartMessageAudio } from './MessageAudio';
-type AudioAttachmentProps = Omit;
+type AudioAttachmentProps = Omit<
+ MessageAudioProps,
+ 'computePeaks' | 'buttonRef'
+>;
export function renderAudioAttachment(
props: AudioAttachmentProps