diff --git a/app/views/api/v1/models/_inbox.json.jbuilder b/app/views/api/v1/models/_inbox.json.jbuilder index c60b6f98a..89a6258ad 100644 --- a/app/views/api/v1/models/_inbox.json.jbuilder +++ b/app/views/api/v1/models/_inbox.json.jbuilder @@ -144,6 +144,4 @@ if resource.twilio? && resource.channel.respond_to?(:voice_enabled?) end ## Voice attribute for WhatsApp Cloud (only embedded-signup channels surface true) -if resource.channel_type == 'Channel::Whatsapp' && resource.channel.respond_to?(:voice_enabled?) - json.voice_enabled resource.channel.voice_enabled? -end +json.voice_enabled resource.channel.voice_enabled? if resource.channel_type == 'Channel::Whatsapp' && resource.channel.respond_to?(:voice_enabled?)