Fix new account calculation

This commit is contained in:
Moxie Marlinspike 2019-08-27 11:14:11 -07:00
parent ae5da74bb1
commit e3daf743f2
1 changed files with 2 additions and 1 deletions

View File

@ -67,8 +67,9 @@ public class Accounts {
.mapTo(UUID.class)
.findOnly();
boolean isNew = uuid.equals(account.getUuid());
account.setUuid(uuid);
return uuid.equals(account.getUuid());
return isNew;
} catch (JsonProcessingException e) {
throw new IllegalArgumentException(e);
}