split ts, better syncing

This commit is contained in:
Matias Alejo Garcia 2014-10-31 12:27:22 -03:00
commit b49661ebd8
4 changed files with 50 additions and 24 deletions

View file

@ -566,7 +566,7 @@ Identity.prototype.decodeSecret = function(secret) {
Identity.prototype.getLastFocusedWallet = function() {
if (_.keys(this.wallets).length == 0) return;
return _.max(this.wallets, function(wallet) {
return wallet.lastTimestamp || 0;
return wallet.focusedTimestamp || 0;
});
};