fix(chat): hide voice message transcript
This commit is contained in:
@@ -7,13 +7,11 @@ import styles from "./voice-bubble.module.css";
|
||||
|
||||
export interface VoiceBubbleProps {
|
||||
audioUrl: string;
|
||||
content?: string;
|
||||
isFromAI: boolean;
|
||||
}
|
||||
|
||||
export function VoiceBubble({
|
||||
audioUrl,
|
||||
content = "",
|
||||
isFromAI,
|
||||
}: VoiceBubbleProps) {
|
||||
const audioRef = useRef<HTMLAudioElement>(null);
|
||||
@@ -82,7 +80,6 @@ export function VoiceBubble({
|
||||
<span />
|
||||
<span />
|
||||
</div>
|
||||
{content.length > 0 ? <p className={styles.text}>{content}</p> : null}
|
||||
{hasError ? (
|
||||
<p className={styles.error}>Voice message failed to load.</p>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user