Mailspring/internal_packages
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
..
account-sidebar fix(mailto): Handle mailto on application launch, populate NamespaceStore synchronously 2015-05-21 18:08:29 -07:00
attachments fix(naming): Move atom/inbox/nilas refs to Nylas 2015-05-15 11:07:28 -07:00
calendar-bar refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
composer Fixes T1751: Make sure composer can't send twice 2015-06-01 11:24:32 -04:00
developer-bar fix(asar): Support ASAR, and running of specs in prod builds 2015-05-21 14:41:30 -07:00
file-list refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
inbox-contact-elements refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
light-ui refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
message-list fix(T1744): Display attachments when message has no body, additional specs 2015-05-28 18:15:47 -07:00
message-templates update linter to look at all less files 2015-05-21 14:50:40 -07:00
mode-switch refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
notification-mailto refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
notification-update-available fix(notifications): Give notifications tag like HTML5 Notifications so you can de-dupe 2015-05-25 10:27:36 -07:00
notifications Removed invalid Action.notificationDismissed firing 2015-05-27 12:31:07 -04:00
onboarding fix(spellchecking): Turn off spellcheck on email fields 2015-05-22 17:04:37 -07:00
search-bar fix(asar): Support ASAR, and running of specs in prod builds 2015-05-21 14:41:30 -07:00
sidebar-fullcontact update linter to look at all less files 2015-05-21 14:50:40 -07:00
sidebar-inbox-internal update linter to look at all less files 2015-05-21 14:50:40 -07:00
thread-list fix(mailto): Handle mailto on application launch, populate NamespaceStore synchronously 2015-05-21 18:08:29 -07:00
today refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
tooltip update linter to look at all less files 2015-05-21 14:50:40 -07:00
unread-badge refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00
unread-notifications refactor(utils): switch to regular underscore 2015-05-19 16:06:59 -07:00