fix login existing and do scope.apply after email dao sync

This commit is contained in:
Tankred Hase 2013-12-03 20:25:39 +01:00
parent a32e7ad8c9
commit d23bdbc172
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -88,9 +88,10 @@ define(function(require) {
// sort emails
displayEmails(getFolder().messages);
// display last update
updateStatus('Last update: ', new Date());
$scope.$apply();
});
};