[MM-51089] Fix sorting value of category in CreateSidebarCategoryForTeamForUser (#22455)

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Tanmay Datta
2023-04-19 14:59:49 +01:00
коммит произвёл GitHub
родитель 9a5c4fc736
Коммит 1f57819054
2 изменённых файлов: 33 добавлений и 1 удалений

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

@@ -335,7 +335,7 @@ func (s SqlChannelStore) CreateSidebarCategory(userId, teamId string, newCategor
Id: newCategoryId,
UserId: userId,
TeamId: teamId,
Sorting: model.SidebarCategorySortDefault,
Sorting: newCategory.Sorting,
SortOrder: int64(model.MinimalSidebarSortDistance * len(newOrder)), // first we place it at the end of the list
Type: model.SidebarCategoryCustom,
Muted: newCategory.Muted,