From 092d59333c44c2e50c0191027e4c9f724ab78888 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Mon, 4 May 2026 14:20:07 +0700 Subject: [PATCH] chore(voice): rubocop modifier-if on inbox jbuilder voice_enabled line --- app/views/api/v1/models/_inbox.json.jbuilder | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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?)