summaryrefslogtreecommitdiffstats
path: root/bridge/slack
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-22 23:56:00 +0100
committerWim <wim@42.be>2018-02-22 23:56:00 +0100
commitf82a9cc7ac5fc9d3ea880b60121546b643943285 (patch)
treee6192c1e91383d4ff6ae0cb89f1c3087cb9ee9b3 /bridge/slack
parentcce7624ab8e8e2b91e9854516715a0ddc22dca6a (diff)
downloadmatterbridge-msglm-f82a9cc7ac5fc9d3ea880b60121546b643943285.tar.gz
matterbridge-msglm-f82a9cc7ac5fc9d3ea880b60121546b643943285.tar.bz2
matterbridge-msglm-f82a9cc7ac5fc9d3ea880b60121546b643943285.zip
Fix Update userlist on join (slack). Closes #372
Diffstat (limited to 'bridge/slack')
-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" {