commit 940674becdb8fdb9f8facb44f1b3707dc0140aa0
Author: Wim <wim@42.be>
Date: Thu Feb 22 23:36:22 2018 +0000
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 8088644..b7c80bf 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -78 +78 @@ import (
"github.com/42wim/matterbridge/bridge/config"
"github.com/42wim/matterbridge/bridge/helper"
"github.com/42wim/matterbridge/matterhook"
- log "github.com/sirupsen/logrus"
"github.com/nlopes/slack"
+ log "github.com/sirupsen/logrus"
"html"
"io"
"net/http"
@@ -3426 +34210 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
}
switch ev := msg.Data.(type) {
case *slack.MessageEvent:
+ // update the userlist on a channel_join
+ if message.Raw.SubType == "channel_join" {
+ b.Users, _ = b.sc.GetUsers()
+ }
if ev.SubType == "pinned_item" || ev.SubType == "unpinned_item" {
continue
}