iachat/lib/integrations
Muhsin Keloth 5487d4c615
fix: Include private channels in Slack integration pagination (#11751)
Fixes
https://linear.app/chatwoot/issue/CW-4507/slack-integration-not-showing-private-channels
  ## Problem

When the Slack workspace has many channels (requiring multiple API
requests to fetch all of them), our system was only looking for private
channels in the first batch of results. All subsequent batches were
missing the instruction to include private channels, so they only
returned public channels.

  ## Root Cause
- Initial API call correctly specified `types:
'public_channel,private_channel'`
- Pagination loop only passed `cursor` parameter, omitting `types` and
`exclude_archived`
  - Subsequent pages defaulted to public channels only

  ## Changes
- Fixed parameter formatting in `types` (removed space:
`'public_channel, private_channel'` →
`'public_channel,private_channel'`)
- Added missing `types` and `exclude_archived` parameters to paginated
`conversations_list` calls

---------

Co-authored-by: Sojan Jose <sojan@pepalo.com>
2025-06-17 16:44:56 -07:00
..
captain feat: Generate SSO URL in Chatwoot, move Captain to primary tab (#9871) 2024-08-01 19:22:34 -07:00
dialogflow chore: Add region option to Dialogflow integration (#11510) 2025-06-05 20:01:17 -05:00
dyte feat: Upgrade Dyte apis to v2 (#10706) 2025-02-19 14:47:48 -08:00
facebook feat: Facebook delivery reports (#8136) 2023-11-20 12:22:45 +05:30
google_translate chore: Improve translation service with HTML and plain text support (#11305) 2025-04-16 17:59:06 +05:30
linear feat: Add activity messages for linear actions (#11654) 2025-06-13 11:57:11 +05:30
openai feat: Improve reply suggestions using help center articles (#9026) 2024-03-03 20:25:19 -08:00
slack fix: Include private channels in Slack integration pagination (#11751) 2025-06-17 16:44:56 -07:00
bot_processor_service.rb feat: Implement UI for Agent Bots in settings and remove CSML support (#11276) 2025-04-16 18:02:49 +05:30
openai_base_service.rb chore: Update GPT Model (#10111) 2024-09-16 09:41:20 +05:30