Mailspring/internal_packages/composer
Evan Morikawa 28a6668567 Fixes T1751: Make sure composer can't send twice
Summary:
Fixes T1751
Since there's time between clicking "send" and the draft appearing on the
TaskQueue (which is what we use to determine sending state declaratively)
it's possible for it to send twice.

I opted to use `setState` at the Composer View level since I don't think
we should debouce the Action or the Store. It's totally fine for a script
to queue a bunch of messages to send via the queue. We really just want to
stop it at the user intaction level.

Test Plan: There's a test for this now in the composer-spec

Reviewers: bengotow

Reviewed By: bengotow

Maniphest Tasks: T1751

Differential Revision: https://phab.nylas.com/D1576
2015-06-01 11:24:32 -04:00
..
keymaps feat(draft): escape deletes pristine drafts 2015-03-25 14:18:07 -04:00
lib Fixes T1751: Make sure composer can't send twice 2015-06-01 11:24:32 -04:00
spec Fixes T1751: Make sure composer can't send twice 2015-06-01 11:24:32 -04:00
stylesheets update linter to look at all less files 2015-05-21 14:50:40 -07:00
.bowerrc fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
.gitignore fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
bower.json refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
build.js fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
CHANGELOG.md fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
end.frag fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
package.json refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
README.md fix(drafts): Rename files inbox-composer =>composer 2015-02-03 17:16:25 -08:00
start.frag fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00

composer package