summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/slack/slack.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index c3d3d927..6432ecc1 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -204,6 +204,14 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
b.channels = ev.Info.Channels
b.si = ev.Info
b.Users, _ = b.sc.GetUsers()
+ // add private channels
+ groups, _ := b.sc.GetGroups(true)
+ for _, g := range groups {
+ channel := new(slack.Channel)
+ channel.ID = g.ID
+ channel.Name = g.Name
+ b.channels = append(b.channels, *channel)
+ }
case *slack.InvalidAuthEvent:
flog.Fatalf("Invalid Token %#v", ev)
default: