Mailspring/internal_packages
Ben Gotow 552b66fbaf fix(syncback): Bidirectional transforms, ready-to-send saved state
Summary:
This diff replaces "finalizeSessionBeforeSending" with a
plugin hook that is bidirectional and allows us to put the draft in
the "ready to send" state every time we save it, and restore it to
the "ready to edit" state every time a draft session is created to
edit it.

This diff also significantly restructures the draft tasks:

1. SyncbackDraftUploadsTask:
   - ensures that `uploads` are converted to `files` and that any
     existing files on the draft are part of the correct account.

1. SyncbackDraftTask:
   - saves the draft, nothing else.

3. SendDraftTask
   - sends the draft, nothing else.
   - deletes the entire uploads directory for the draft

Test Plan: WIP

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2753
2016-03-16 19:27:12 -07:00
..
account-error-header
account-sidebar
attachments refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
category-picker
composer
composer-emoji sp(composer-emoji): Correct emojis to emoji 2016-03-15 13:37:54 -07:00
composer-signature
composer-spellcheck fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
composer-templates fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
composer-translate
events refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
github-contact-card
link-tracking fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
message-autoload-images
message-list refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
message-view-on-github
mode-switch
notification-mailto
notification-update-available refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
notifications refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
onboarding
open-tracking fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
participant-profile
personal-level-indicators
phishing-detection
plugins
preferences feat(view-mode): Add option in menu to select view mode 2016-03-15 11:20:55 -07:00
print
quick-schedule
screenshot-mode
search-bar refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
send-and-archive
send-later fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
sidebar-fullcontact
system-tray fix(focus): Show drafts in unfocused state when window is blurred 2016-03-15 12:12:30 -07:00
theme-picker
thread-list fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
thread-snooze
ui-dark refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
ui-darkside
ui-light
ui-taiga
ui-ubuntu refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
undo-redo
unread-notifications
worker-sync
worker-ui fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00