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:
parent
1219f9ecab
commit
a20df131d1
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user