fix: Record audio in wav format for web/facebook (#7046)

This commit is contained in:
giquieu
2023-05-10 12:29:56 +05:30
committed by GitHub
parent 662967b5d3
commit 520bdabefe
3 changed files with 25 additions and 21 deletions
@@ -501,10 +501,10 @@ export default {
return `draft-${this.conversationIdByRoute}-${this.replyType}`;
},
audioRecordFormat() {
if (this.isAWebWidgetInbox) {
return AUDIO_FORMATS.WEBM;
if (this.isAWhatsAppChannel) {
return AUDIO_FORMATS.OGG;
}
return AUDIO_FORMATS.OGG;
return AUDIO_FORMATS.WAV;
},
messageVariables() {
const variables = getMessageVariables({