Nested Folders: Move SharedWithMe to the top of the folders list (#79875)

This commit is contained in:
Tania
2023-12-29 11:35:15 +01:00
committed by GitHub
parent 5a21a6d938
commit a62db1e24b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ func (s *Service) getRootFolders(ctx context.Context, q *folder.GetChildrenQuery
// add "shared with me" folder on the 1st page
if (q.Page == 0 || q.Page == 1) && len(q.FolderUIDs) != 0 {
children = append(children, &folder.SharedWithMeFolder)
children = append([]*folder.Folder{&folder.SharedWithMeFolder}, children...)
}
return children, nil