From 3b3f0c0c810d0150e41f9477651e440aca22ebb5 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Wed, 23 Mar 2016 17:46:24 -0700 Subject: [PATCH] fix(send-later): Close popover in inline composer when msg scheduled --- internal_packages/send-later/lib/send-later-store.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal_packages/send-later/lib/send-later-store.js b/internal_packages/send-later/lib/send-later-store.js index 8809b2c0d..77fe1389b 100644 --- a/internal_packages/send-later/lib/send-later-store.js +++ b/internal_packages/send-later/lib/send-later-store.js @@ -61,9 +61,7 @@ class SendLaterStore extends NylasStore { onSendLater = (draftClientId, sendLaterDate, dateLabel) => { this.recordAction(sendLaterDate, dateLabel) this.setMetadata(draftClientId, {sendLaterDate}).then(() => { - if (NylasEnv.isComposerWindow()) { - Actions.closePopover(); - } + Actions.closePopover(); }); };