chore: Disable archived channels from the slack integration (#7904)
This commit is contained in:
@@ -24,7 +24,7 @@ class Integrations::Slack::ChannelBuilder
|
|||||||
end
|
end
|
||||||
|
|
||||||
def channels
|
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
|
channel_list = conversations_list.channels
|
||||||
while conversations_list.response_metadata.next_cursor.present?
|
while conversations_list.response_metadata.next_cursor.present?
|
||||||
conversations_list = slack_client.conversations_list(cursor: conversations_list.response_metadata.next_cursor)
|
conversations_list = slack_client.conversations_list(cursor: conversations_list.response_metadata.next_cursor)
|
||||||
|
|||||||
Reference in New Issue
Block a user