mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
Fix bug when trying to open undefined folder before initial sync
This commit is contained in:
parent
dada15c2b4
commit
f9b1c66932
@ -347,6 +347,10 @@ var MailListCtrl = function($scope, $routeParams) {
|
||||
//
|
||||
|
||||
function openCurrentFolder() {
|
||||
if (!currentFolder()) {
|
||||
return;
|
||||
}
|
||||
|
||||
emailDao.openFolder({
|
||||
folder: currentFolder()
|
||||
}, function(error) {
|
||||
|
@ -120,7 +120,6 @@ var NavigationCtrl = function($scope, $routeParams, $location) {
|
||||
outboxBo.onSent = sentNotification;
|
||||
// start checking outbox periodically
|
||||
outboxBo.startChecking($scope.onOutboxUpdate);
|
||||
|
||||
}
|
||||
|
||||
function sentNotification(email) {
|
||||
|
Loading…
Reference in New Issue
Block a user