feat: add waveform voice messages end-to-end
All checks were successful
CI / test (push) Successful in 23s

This commit is contained in:
2026-03-08 12:40:49 +03:00
parent 3b82b5e558
commit 30169a3a27
13 changed files with 361 additions and 19 deletions

View File

@@ -147,12 +147,19 @@ export async function uploadToPresignedUrl(
}
}
export async function attachFile(messageId: number, fileUrl: string, fileType: string, fileSize: number): Promise<void> {
export async function attachFile(
messageId: number,
fileUrl: string,
fileType: string,
fileSize: number,
waveformPoints?: number[] | null
): Promise<void> {
await http.post("/media/attachments", {
message_id: messageId,
file_url: fileUrl,
file_type: fileType,
file_size: fileSize
file_size: fileSize,
waveform_points: waveformPoints ?? undefined
});
}