summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/slack/slack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index b7c80bf4..422f0f4a 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -343,7 +343,7 @@ 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" {
+ if ev.SubType == "channel_join" {
b.Users, _ = b.sc.GetUsers()
}
if ev.SubType == "pinned_item" || ev.SubType == "unpinned_item" {