forked from jshiffer/matterbridge
Fix Update userlist on join (slack). Closes #372
This commit is contained in:
parent
cce7624ab8
commit
f82a9cc7ac
@ -343,7 +343,7 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
|
|||||||
switch ev := msg.Data.(type) {
|
switch ev := msg.Data.(type) {
|
||||||
case *slack.MessageEvent:
|
case *slack.MessageEvent:
|
||||||
// update the userlist on a channel_join
|
// update the userlist on a channel_join
|
||||||
if message.Raw.SubType == "channel_join" {
|
if ev.SubType == "channel_join" {
|
||||||
b.Users, _ = b.sc.GetUsers()
|
b.Users, _ = b.sc.GetUsers()
|
||||||
}
|
}
|
||||||
if ev.SubType == "pinned_item" || ev.SubType == "unpinned_item" {
|
if ev.SubType == "pinned_item" || ev.SubType == "unpinned_item" {
|
||||||
|
Loading…
Reference in New Issue
Block a user