mirror of
https://github.com/lingble/chatwoot.git
synced 2026-03-20 03:52:43 +00:00
chore: Disable archived channels from the slack integration (#7904)
This commit is contained in:
@@ -24,7 +24,7 @@ class Integrations::Slack::ChannelBuilder
|
||||
end
|
||||
|
||||
def channels
|
||||
conversations_list = slack_client.conversations_list(types: 'public_channel, private_channel')
|
||||
conversations_list = slack_client.conversations_list(types: 'public_channel, private_channel', exclude_archived: true)
|
||||
channel_list = conversations_list.channels
|
||||
while conversations_list.response_metadata.next_cursor.present?
|
||||
conversations_list = slack_client.conversations_list(cursor: conversations_list.response_metadata.next_cursor)
|
||||
|
||||
Reference in New Issue
Block a user