fix bug with erroneous api usage

This commit is contained in:
Felix Hammerl 2013-10-17 12:54:18 +02:00
parent 8c6c6a8ab2
commit fea71cd001
1 changed files with 2 additions and 2 deletions

View File

@ -39,14 +39,14 @@ define(function(require) {
if ($scope.currentFolder === trashFolder) {
emailDao.imapDeleteMessage({
path: $scope.currentFolder.path,
folder: $scope.currentFolder.path,
uid: email.uid
}, moved);
return;
}
emailDao.imapMoveMessage({
path: $scope.currentFolder.path,
folder: $scope.currentFolder.path,
uid: email.uid,
destination: trashFolder.path
}, moved);