fix(send-later): Close popover in inline composer when msg scheduled

This commit is contained in:
Juan Tejada 2016-03-23 17:46:24 -07:00
parent d93178893e
commit 3b3f0c0c81

View file

@ -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();
});
};