fix(recordings): stop faking duration from file size + render edited content in search

The voice_recordings table has no duration column, but the backend aliased
duration_bytes = size_bytes (file size in bytes) and RecordingCard divided it
by 60 as if it were seconds — a 3MB MP3 rendered as a nonsensical '55924:3'
fake timestamp. Drop the fabricated field and show real file size instead.

Also render edited_content fallback in the analysis search results for
consistency with message cards/detail.
This commit is contained in:
asepharyana
2026-08-02 10:32:58 +07:00
parent 3f199aa70d
commit 25f6609a9f
4 changed files with 9 additions and 9 deletions
@@ -8,8 +8,6 @@ export interface VoiceRecording {
channel_name?: string | null;
filename: string;
size_bytes: number;
/** Present on REST rows; absent on WS voice_recording_uploaded events */
duration_bytes?: number | null;
download_url?: string | null;
upload_status: string;
upload_error?: string | null;