1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-07 10:30:18 -05:00

fixed bug when offline

This commit is contained in:
Tankred Hase 2013-04-19 20:47:30 +02:00
parent 4833169863
commit b2a8f2926f

View File

@ -16,8 +16,7 @@ app.dao.EmailDAO = function(_, crypto, devicestorage, cloudstorage, naclCrypto,
// sync user's cloud key with local storage // sync user's cloud key with local storage
cloudstorage.getUserSecretKey(account.get('emailAddress'), function(err) { cloudstorage.getUserSecretKey(account.get('emailAddress'), function(err) {
if (err) { if (err) {
callback(err); console.log('Error syncing secret key to cloud: ' + err);
return;
} }
// init crypto // init crypto
initCrypto(); initCrypto();