mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-26 16:04:59 +00:00
Remove unnecessary controller and helper changes
- Revert inboxes_controller.rb to develop version (voice handled in enterprise) - Revert inboxes_helper.rb to develop version (voice handled in enterprise) - Enterprise controller already provides voice channel support via prepend_mod_with pattern - Eliminate redundant changes outside enterprise scope
This commit is contained in:
@@ -163,8 +163,7 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
|
|||||||
'line' => Channel::Line,
|
'line' => Channel::Line,
|
||||||
'telegram' => Channel::Telegram,
|
'telegram' => Channel::Telegram,
|
||||||
'whatsapp' => Channel::Whatsapp,
|
'whatsapp' => Channel::Whatsapp,
|
||||||
'sms' => Channel::Sms,
|
'sms' => Channel::Sms
|
||||||
'voice' => Channel::Voice
|
|
||||||
}[permitted_params[:channel][:type]]
|
}[permitted_params[:channel][:type]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -107,8 +107,7 @@ module Api::V1::InboxesHelper
|
|||||||
'line' => Current.account.line_channels,
|
'line' => Current.account.line_channels,
|
||||||
'telegram' => Current.account.telegram_channels,
|
'telegram' => Current.account.telegram_channels,
|
||||||
'whatsapp' => Current.account.whatsapp_channels,
|
'whatsapp' => Current.account.whatsapp_channels,
|
||||||
'sms' => Current.account.sms_channels,
|
'sms' => Current.account.sms_channels
|
||||||
'voice' => Current.account.voice_channels
|
|
||||||
}[permitted_params[:channel][:type]]
|
}[permitted_params[:channel][:type]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user