PLT-4670 DM channel creation via webhook fails (#4523)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
daf0490bbf
Коммит
70e0d5c298
@@ -443,6 +443,8 @@ func incomingWebhook(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
channel = newChanResult.Data.(*model.Channel)
|
channel = newChanResult.Data.(*model.Channel)
|
||||||
|
InvalidateCacheForUser(directUserId)
|
||||||
|
InvalidateCacheForUser(hook.UserId)
|
||||||
}
|
}
|
||||||
} else if result.Err != nil {
|
} else if result.Err != nil {
|
||||||
c.Err = model.NewLocAppError("incomingWebhook", "web.incoming_webhook.channel.app_error", nil, "err="+result.Err.Message)
|
c.Err = model.NewLocAppError("incomingWebhook", "web.incoming_webhook.channel.app_error", nil, "err="+result.Err.Message)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user