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