diff options
-rw-r--r-- | js/service/messageservice.js | 4 | ||||
-rw-r--r-- | js/views/composer.js | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/js/service/messageservice.js b/js/service/messageservice.js index 8a9256efe..1a606ba9d 100644 --- a/js/service/messageservice.js +++ b/js/service/messageservice.js @@ -290,10 +290,10 @@ define(function(require) { collection.set([message], {remove: false}); } } - defer.resolve(arguments); + defer.resolve(data); }, error: function() { - defer.reject(arguments); + defer.reject(); }, data: { to: message.to, diff --git a/js/views/composer.js b/js/views/composer.js index 589c37739..e57c05d77 100644 --- a/js/views/composer.js +++ b/js/views/composer.js @@ -126,6 +126,7 @@ define(function(require) { if (!this.isReply()) { this.accounts = options.accounts; this.account = options.account || this.accounts.at(0); + this.draftUID = options.data.id; } else { this.account = options.account; this.folderId = options.folderId; |