chore: fix review comments

This commit is contained in:
Muhsin
2026-04-01 14:28:11 +04:00
parent dfdfc669ea
commit a51af8ca68
6 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ export const VOICE_CALL_PROVIDERS = {
export const getVoiceCallProvider = inbox => {
if (!inbox) return null;
if (inbox.channel_type === INBOX_TYPES.TWILIO && inbox.voice_enabled) {
const channelType = inbox.channel_type || inbox.channelType;
const voiceEnabled = inbox.voice_enabled || inbox.voiceEnabled;
if (channelType === INBOX_TYPES.TWILIO && voiceEnabled) {
return VOICE_CALL_PROVIDERS.TWILIO;
}