MM-17071 Remove auto responder logic from App.SendNotifications (#11789)
* MM-17071 Remove auto responder logic from App.SendNotifications * Log errors returned by SendAutoResponseIfNecessary
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e7c58dcba3
Коммит
bd270aecbd
@@ -393,6 +393,13 @@ func (a *App) handlePostEvents(post *model.Post, user *model.User, channel *mode
|
||||
return err
|
||||
}
|
||||
|
||||
a.Srv.Go(func() {
|
||||
_, err := a.SendAutoResponseIfNecessary(channel, user)
|
||||
if err != nil {
|
||||
mlog.Error("Failed to send auto response", mlog.String("user_id", user.Id), mlog.String("post_id", post.Id), mlog.Err(err))
|
||||
}
|
||||
})
|
||||
|
||||
if triggerWebhooks {
|
||||
a.Srv.Go(func() {
|
||||
if err := a.handleWebhookEvents(post, team, channel, user); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user