Mailspring/internal_packages/composer/spec
Evan Morikawa 00fe3692e8 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
..
contenteditable-component-spec.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
contenteditable-quoted-text-spec.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
inbox-composer-view-spec.cjsx Fixes T1751: Make sure composer can't send twice 2015-06-01 11:24:32 -04:00
participants-text-field-spec.cjsx refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00