mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
575ff4a73e
Summary: Syncback tasks that move messages to a different folder used to leave those messages without a uid because it was unknown at the moment, and it would only be discovered later on in the sync loop. This had the unwanted effect of not allowing you to perform more than 1 syncback action on the same thread back to back (e.g. undoing an archive, or sending and archiving immediately) This commit makes it so that `SetThreadFolderAndLabels` and `MoveThreadToFolder` runs a new sync task to fetch the new uids for the moved messages. We do this via a new sync task, `FetchNewMessagesInFolder` which /only/ fetches new messages in a folder (no fetching old messages or attribute updates). This is a first step to cleaning up the gigantic `FetchMessagesInFolder` task into smaller parts-- but that will come in a separate diff. For now we want to fix the immediate problem. See D3788 and D3789 for more details Test Plan: manually move threads around, undo moving threads, reply on a thread and immediately archive Reviewers: khamidou, mark, spang, halla, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D3798 |
||
---|---|---|
.. | ||
images | ||
spec | ||
src | ||
stylesheets | ||
main.es6 | ||
package.json |