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:
parent
4833169863
commit
b2a8f2926f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user