chore: Fix issue with compose conversation form (#10991)

This commit is contained in:
Sivin Varghese
2025-02-27 21:45:20 +05:30
committed by GitHub
parent 12134f9391
commit b52b2b9a47
5 changed files with 211 additions and 19 deletions

View File

@@ -4,10 +4,3 @@ json.channel_id resource.channel_id
json.name resource.name
json.channel_type resource.channel_type
json.provider resource.channel.try(:provider)
# Fix me: this is for the new conversation modal to work,
# Potentially refactor this later.
json.email resource.channel.try(:email) if resource.email?
json.phone_number resource.channel.try(:phone_number)
json.medium resource.channel.try(:medium) if resource.twilio?
json.message_templates resource.channel.try(:message_templates) if resource.whatsapp?