ProtonMail / WebClients

Monorepo hosting the proton web clients
GNU General Public License v3.0
4.23k stars 537 forks source link

Sort folders including all subfolders #352

Closed Duracell1989 closed 9 months ago

Duracell1989 commented 9 months ago

This code is to include sorting all the sub-folders of your mailbox.

Currently this still fails because of an error returned by the API endpoint: /api/core/v4/labels/order {"Code":2001,"Error":"Invalid input","Details":{}} I am guessing this is some check in the back-end API endpoint. (Probably a check if the returned IDs are a ROOT_FOLDER?)

Is this back-end code also publicly available? (Then, I have no problem in looking into this code) All-in-all; if the back-end API accepts and correctly saves this order, then this code should work.

EpokK commented 9 months ago

Thanks for your proposal, but we think this action should be addressed directly by the BE. And it could be trigger via a new API endpoint.

Duracell1989 commented 9 months ago

@EpokK is the BE also Open-source? As-in; could I also contribute to this?