mirror of
https://github.com/moparisthebest/mail
synced 2024-11-25 10:22:18 -05:00
bugfix syncing empty list from cloud
This commit is contained in:
parent
1219f9ecab
commit
a20df131d1
@ -95,6 +95,12 @@ app.dao.EmailDAO = function(_, crypto, devicestorage, cloudstorage) {
|
|||||||
|
|
||||||
// TODO: remove old folder items from devicestorage
|
// 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
|
// persist encrypted list in device storage
|
||||||
devicestorage.storeEcryptedList(res, 'email_' + folderName, function() {
|
devicestorage.storeEcryptedList(res, 'email_' + folderName, function() {
|
||||||
// remove cached folder in account model
|
// remove cached folder in account model
|
||||||
|
Loading…
Reference in New Issue
Block a user