chore: API fixes (#3014)

- Minor API fixes
- Configuration screen for LINE inbox
This commit is contained in:
Sojan Jose
2021-09-14 22:44:53 +05:30
committed by GitHub
parent 946a09928e
commit 2396b59f11
11 changed files with 76 additions and 16 deletions

View File

@@ -100,6 +100,7 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
end
def update_channel_feature_flags
return unless @inbox.web_widget?
return unless permitted_params(Channel::WebWidget::EDITABLE_ATTRS)[:channel].key? :selected_feature_flags
@inbox.channel.selected_feature_flags = permitted_params(Channel::WebWidget::EDITABLE_ATTRS)[:channel][:selected_feature_flags]