diff options
author | Wim <wim@42.be> | 2018-12-15 23:11:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-15 23:11:03 +0100 |
commit | 53c86702a35b3f9d12993d613d17b74ebb99258d (patch) | |
tree | 8bfdc2e115ed1f99096733f70186edd418a2e9dd /bridge/slack/slack.go | |
parent | 192fe89789cb8d35b0be990b7fb9eb4ae2be9d60 (diff) | |
download | matterbridge-msglm-53c86702a35b3f9d12993d613d17b74ebb99258d.tar.gz matterbridge-msglm-53c86702a35b3f9d12993d613d17b74ebb99258d.tar.bz2 matterbridge-msglm-53c86702a35b3f9d12993d613d17b74ebb99258d.zip |
Add wait option for populateUsers/Channels (slack) Fixes #579 (#653)
When setting wait to true, we wait until the populating isn't in progress anymore.
This is used on startup connections where we really need the initial information
which could take a long time on big servers.
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r-- | bridge/slack/slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 225e16e9..d8dfc62f 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -160,7 +160,7 @@ func (b *Bslack) JoinChannel(channel config.ChannelInfo) error { return nil } - b.populateChannels() + b.populateChannels(false) channelInfo, err := b.getChannel(channel.Name) if err != nil { |