Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1464 from owncloud/fix-drafts-issues
Browse files Browse the repository at this point in the history
return UID correctly so old drafts are automatically removed
  • Loading branch information
jancborchardt committed May 3, 2016
2 parents 271dff5 + e352fb1 commit 6de0d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/service/messageservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions js/views/composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6de0d6f

Please sign in to comment.