[MM-55090] Threads created by users should not be auto-followed on reply by the creator when they've left the channel (#30181)
Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
89490a1093
Коммит
ce61ed8f52
@@ -229,7 +229,9 @@ func (a *App) SendNotifications(c request.CTX, post *model.Post, team *model.Tea
|
||||
if parentPostList != nil {
|
||||
rootPost := parentPostList.Posts[parentPostList.Order[0]]
|
||||
if rootPost.GetProp("from_webhook") != "true" {
|
||||
threadParticipants[rootPost.UserId] = true
|
||||
if _, ok := profileMap[rootPost.UserId]; ok {
|
||||
threadParticipants[rootPost.UserId] = true
|
||||
}
|
||||
}
|
||||
if channel.Type != model.ChannelTypeDirect {
|
||||
rootMentions = getExplicitMentions(rootPost, keywords)
|
||||
|
||||
Ссылка в новой задаче
Block a user