mirror of
https://github.com/moparisthebest/mail
synced 2025-03-01 09:11:46 -05:00
fix login existing and do scope.apply after email dao sync
This commit is contained in:
parent
a32e7ad8c9
commit
d23bdbc172
src/js/controller
@ -39,7 +39,10 @@ define(function(require) {
|
|||||||
encryptedKey: $scope.key.privateKeyArmored
|
encryptedKey: $scope.key.privateKeyArmored
|
||||||
};
|
};
|
||||||
|
|
||||||
emailDao.unlock(keypair, $scope.passphrase, function(err) {
|
emailDao.unlock({
|
||||||
|
keypair: keypair,
|
||||||
|
passphrase: $scope.passphrase
|
||||||
|
}, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.incorrect = true;
|
$scope.incorrect = true;
|
||||||
$scope.onError(err);
|
$scope.onError(err);
|
||||||
|
@ -88,9 +88,10 @@ define(function(require) {
|
|||||||
|
|
||||||
// sort emails
|
// sort emails
|
||||||
displayEmails(getFolder().messages);
|
displayEmails(getFolder().messages);
|
||||||
|
|
||||||
// display last update
|
// display last update
|
||||||
updateStatus('Last update: ', new Date());
|
updateStatus('Last update: ', new Date());
|
||||||
|
|
||||||
|
$scope.$apply();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user