fix(mail(js)): handle new message from template in popup window

This commit is contained in:
Francis Lachapelle
2022-02-14 12:56:08 -05:00
parent 21dc73df56
commit 6c420861d4
2 changed files with 9 additions and 1 deletions
@@ -83,6 +83,14 @@
_addAttachments();
});
}
else if ($stateParams.actionName == 'compose') {
stateMessage.$compose().then(function(msgObject) {
vm.message = msgObject;
vm.fromIdentity = msgObject.editable.from;
_updateFileUploader();
_addAttachments();
});
}
else if (angular.isDefined(stateMessage)) {
this.message = stateMessage;
_updateFileUploader();