4
0
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:
Jonathan Walker (Keenan)
2021-10-16 17:36:30 -04:00
committed by GitHub
parent b56f80b1b8
commit b06a574cc5
2 changed files with 8 additions and 0 deletions

View File

@ -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)
}