diff options
author | Jonathan Walker (Keenan) <xorith@gmail.com> | 2021-10-16 17:36:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-16 23:36:30 +0200 |
commit | b06a574cc51feb7195c312ceabb5634275e66d97 (patch) | |
tree | 9f93fb0f1d9cf5848353c6a2718d9b488c4286ed /bridge/slack/handlers.go | |
parent | b56f80b1b82d58c40919598662ef6184d617976c (diff) | |
download | matterbridge-msglm-b06a574cc51feb7195c312ceabb5634275e66d97.tar.gz matterbridge-msglm-b06a574cc51feb7195c312ceabb5634275e66d97.tar.bz2 matterbridge-msglm-b06a574cc51feb7195c312ceabb5634275e66d97.zip |
Invalidate user in cache on user change event (#1604)
Co-authored-by: Wim <wim@42.be>
Diffstat (limited to 'bridge/slack/handlers.go')
-rw-r--r-- | bridge/slack/handlers.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index d05a358c..4dc57d0d 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -95,6 +95,8 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) { b.users.populateUser(ev.User) case *slack.HelloEvent, *slack.LatencyReport, *slack.ConnectingEvent: continue + case *slack.UserChangeEvent: + b.users.invalidateUser(ev.User.ID) default: b.Log.Debugf("Unhandled incoming event: %T", ev) } |