Fix bug when trying to open undefined folder before initial sync

This commit is contained in:
Tankred Hase 2014-10-22 17:21:28 +02:00
parent dada15c2b4
commit f9b1c66932
2 changed files with 4 additions and 1 deletions

View File

@ -347,6 +347,10 @@ var MailListCtrl = function($scope, $routeParams) {
//
function openCurrentFolder() {
if (!currentFolder()) {
return;
}
emailDao.openFolder({
folder: currentFolder()
}, function(error) {

View File

@ -120,7 +120,6 @@ var NavigationCtrl = function($scope, $routeParams, $location) {
outboxBo.onSent = sentNotification;
// start checking outbox periodically
outboxBo.startChecking($scope.onOutboxUpdate);
}
function sentNotification(email) {