From 552d967c81f90760312b1f6d2d9640edaf5662a2 Mon Sep 17 00:00:00 2001 From: Mazen Khalil Date: Sat, 16 Dec 2023 22:55:47 +0300 Subject: [PATCH] fix: Use ogg format for Telegram audio messages (#8505) Co-authored-by: Pranav Raj S --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 81cc294b3..4199be673 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -497,7 +497,11 @@ export default { return `draft-${this.conversationIdByRoute}-${this.replyType}`; }, audioRecordFormat() { - if (this.isAWhatsAppChannel || this.isAPIInbox) { + if ( + this.isAWhatsAppChannel || + this.isAPIInbox || + this.isATelegramChannel + ) { return AUDIO_FORMATS.OGG; } return AUDIO_FORMATS.WAV;