MM-33746 Add TotalMsgCountRoot and MsgCountRoot columns (#17150)

Этот коммит содержится в:
Eli Yukelzon
2021-03-31 16:51:02 +03:00
коммит произвёл GitHub
родитель ee3f986da0
Коммит ab5925c4de
22 изменённых файлов: 356 добавлений и 103 удалений

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

@@ -1411,7 +1411,7 @@ func (a *App) countMentionsFromPost(user *model.User, post *model.Post) (int, *m
if channel.Type == model.CHANNEL_DIRECT {
// In a DM channel, every post made by the other user is a mention
count, nErr := a.Srv().Store.Channel().CountPostsAfter(post.ChannelId, post.CreateAt-1, channel.GetOtherUserIdForDM(user.Id))
count, _, nErr := a.Srv().Store.Channel().CountPostsAfter(post.ChannelId, post.CreateAt-1, channel.GetOtherUserIdForDM(user.Id))
if nErr != nil {
return 0, model.NewAppError("countMentionsFromPost", "app.channel.count_posts_since.app_error", nil, nErr.Error(), http.StatusInternalServerError)
}