MM-30865 Invalid Participants handling on post delete in thread (#16353)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
64499ca767
Коммит
1bd7dc41bd
@@ -1937,7 +1937,6 @@ func (s *SqlPostStore) cleanupThreads(postId, rootId, userId string, permanent b
|
||||
}
|
||||
if thread != nil {
|
||||
thread.ReplyCount -= 1
|
||||
thread.Participants = thread.Participants.Remove(userId)
|
||||
if _, err = s.Thread().Update(thread); err != nil {
|
||||
return errors.Wrap(err, "failed to update thread")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user