Mailspring/internal_packages/send-later/lib
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
..
main.js remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
send-later-actions.js feat(snooze/send-later): Add snooze and send later plugins 2016-02-18 10:06:21 -08:00
send-later-button.jsx fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
send-later-constants.js fix(date-utils): Add localization to date formats 2016-03-07 16:44:54 -08:00
send-later-popover.jsx remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
send-later-status.jsx fix(date-utils): Add localization to date formats 2016-03-07 16:44:54 -08:00
send-later-store.js fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00