MM-32652 /threads?unread=true returns null threads and no counts if there are no unread threads (#16885)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Eli Yukelzon
2021-02-15 15:42:05 +02:00
коммит произвёл GitHub
родитель a3de71fba4
Коммит 830594004b
2 изменённых файлов: 9 добавлений и 1 удалений

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

@@ -301,7 +301,7 @@ func (s *SqlThreadStore) GetThreadsForUser(userId, teamId string, opts model.Get
result := &model.Threads{
Total: totalCount,
Threads: nil,
Threads: []*model.ThreadResponse{},
TotalUnreadMentions: totalUnreadMentions,
TotalUnreadThreads: totalUnreadThreads,
}