5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 17:15:40 +00:00

Increase batch size for conversation.list api method (slack) (#1700)

Co-authored-by: Ivan Zuev <i-zuev@yandex-team.ru>
This commit is contained in:
Ivan Zuev 2022-01-29 02:13:15 +03:00 committed by GitHub
parent 5a1fd7dadd
commit 6a7412bf2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)