feat: add waveform voice messages end-to-end
All checks were successful
CI / test (push) Successful in 23s
All checks were successful
CI / test (push) Successful in 23s
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user