fix: Enable ogg format for audio recording in API channel (#7178)

This commit is contained in:
Muhsin Keloth 2023-05-24 15:05:31 +05:30 committed by GitHub
parent 4807052c37
commit 5618b5ebd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;