From f5663514b8d705cb1337415c98c51e54f649f4bd Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 27 Sep 2017 13:18:06 -0700 Subject: [PATCH] Fix send later not dismissing composer window --- .travis.yml | 1 - app/internal_packages/send-later/lib/send-later-button.jsx | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e032def23..6d1a0db82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,7 +82,6 @@ before_script: script: - npm run ci-setup-mac-keychain - npm run lint -- npm test - mailsync/build.sh - mv ./mailsync ./mailsync-src - DEBUG=electron-packager,electron-osx-sign npm run build diff --git a/app/internal_packages/send-later/lib/send-later-button.jsx b/app/internal_packages/send-later/lib/send-later-button.jsx index 8ae0cf5dd..dadb32d2f 100644 --- a/app/internal_packages/send-later/lib/send-later-button.jsx +++ b/app/internal_packages/send-later/lib/send-later-button.jsx @@ -82,9 +82,14 @@ class SendLaterButton extends Component { label: dateLabel, }); } + this.props.session.changes.addPluginMetadata(PLUGIN_ID, { expiration: sendLaterDate, }); + + if (AppEnv.isComposerWindow()) { + AppEnv.close(); + } }; onCancelSendLater = () => {