From 5618b5ebd364d3d0b60dbcce51cb72344ceaf355 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 24 May 2023 15:05:31 +0530 Subject: [PATCH] fix: Enable `ogg` format for audio recording in API channel (#7178) --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 1c6f4f796..e72a38c5c 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -501,7 +501,7 @@ export default { return `draft-${this.conversationIdByRoute}-${this.replyType}`; }, audioRecordFormat() { - if (this.isAWhatsAppChannel) { + if (this.isAWhatsAppChannel || this.isAPIInbox) { return AUDIO_FORMATS.OGG; } return AUDIO_FORMATS.WAV;