summaryrefslogtreecommitdiffstats
path: root/bridge/slack/users_channels.go
diff options
context:
space:
mode:
authorIvan Zuev <dajohnes@gmail.com>2022-01-29 02:13:15 +0300
committerGitHub <noreply@github.com>2022-01-29 00:13:15 +0100
commit6a7412bf2bce500cdf5a34cd06abe426376136d3 (patch)
tree89108762104b2c955397c60a0880acd9eca4c8de /bridge/slack/users_channels.go
parent5a1fd7daddbb07b93e3611d023ea48e1991fc0c6 (diff)
downloadmatterbridge-msglm-6a7412bf2bce500cdf5a34cd06abe426376136d3.tar.gz
matterbridge-msglm-6a7412bf2bce500cdf5a34cd06abe426376136d3.tar.bz2
matterbridge-msglm-6a7412bf2bce500cdf5a34cd06abe426376136d3.zip
Increase batch size for conversation.list api method (slack) (#1700)
Co-authored-by: Ivan Zuev <i-zuev@yandex-team.ru>
Diffstat (limited to 'bridge/slack/users_channels.go')
-rw-r--r--bridge/slack/users_channels.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/slack/users_channels.go b/bridge/slack/users_channels.go
index 9b34b779..85b944bd 100644
--- a/bridge/slack/users_channels.go
+++ b/bridge/slack/users_channels.go
@@ -291,6 +291,7 @@ func (b *channels) populateChannels(wait bool) {
queryParams := &slack.GetConversationsParameters{
ExcludeArchived: true,
Types: []string{"public_channel,private_channel"},
+ Limit: 1000,
}
for {
channels, nextCursor, err := b.sc.GetConversations(queryParams)