1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 23:08:50 -05:00

bugfix syncing empty list from cloud

This commit is contained in:
Tankred Hase 2013-03-19 17:04:26 +01:00
parent 1219f9ecab
commit a20df131d1

View File

@ -94,6 +94,12 @@ app.dao.EmailDAO = function(_, crypto, devicestorage, cloudstorage) {
}
// TODO: remove old folder items from devicestorage
// return if fetched list from cloud storage is empty
if (res.length === 0) {
callback();
return;
}
// persist encrypted list in device storage
devicestorage.storeEcryptedList(res, 'email_' + folderName, function() {