From f82a9cc7ac5fc9d3ea880b60121546b643943285 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 22 Feb 2018 23:56:00 +0100 Subject: Fix Update userlist on join (slack). Closes #372 --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" { -- cgit v1.2.3