[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>
Этот коммит содержится в:
Devin Binnie
2025-02-18 12:29:26 -05:00
коммит произвёл GitHub
родитель 89490a1093
Коммит ce61ed8f52
2 изменённых файлов: 45 добавлений и 1 удалений

Просмотреть файл

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