diff options
-rw-r--r-- | api/webhook.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/webhook.go b/api/webhook.go index 2daac03f2..dce739239 100644 --- a/api/webhook.go +++ b/api/webhook.go @@ -443,6 +443,8 @@ func incomingWebhook(c *Context, w http.ResponseWriter, r *http.Request) { return } else { channel = newChanResult.Data.(*model.Channel) + InvalidateCacheForUser(directUserId) + InvalidateCacheForUser(hook.UserId) } } else if result.Err != nil { c.Err = model.NewLocAppError("incomingWebhook", "web.incoming_webhook.channel.app_error", nil, "err="+result.Err.Message) |