mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-07 05:24:03 +00:00
Invalidate user in cache on user change event (#1604)
Co-authored-by: Wim <wim@42.be>
This commit is contained in:

committed by
GitHub

parent
b56f80b1b8
commit
b06a574cc5
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user