Revert "feat: Custom fields in pre-chat form (#4135)" (#4182)

This reverts commit e730804b48.
This commit is contained in:
Muhsin Keloth
2022-03-15 16:54:33 +05:30
committed by GitHub
parent 25876993ff
commit f405572e5c
16 changed files with 138 additions and 329 deletions

View File

@@ -49,6 +49,7 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
return if permitted_params(channel_attributes)[:channel].blank?
validate_email_channel(channel_attributes) if @inbox.inbox_type == 'Email'
@inbox.channel.update!(permitted_params(channel_attributes)[:channel])
update_channel_feature_flags
end