Mailspring/internal_packages/link-tracking/lib
Ben Gotow 466bca813b 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
..
link-tracking-after-send.es6 fix(lint): fix linter issues 2016-03-08 13:02:10 -05:00
link-tracking-button.jsx fix(link/open tracking): Remove intermediate metadata states, extra db lookup, dead code 2016-02-25 12:54:18 -08:00
link-tracking-composer-extension.es6 fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
link-tracking-constants.es6 fix(plugins): Change server URLs for open/link tracking to final values 2016-02-24 16:29:12 -08:00
link-tracking-message-extension.es6 Match only valid URLs for link tracking 2016-03-03 13:46:41 -08:00
main.es6 fix(lint): fix linter issues 2016-03-08 13:02:10 -05:00