mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 05:56:47 +00:00
Fix new account calculation
This commit is contained in:
1 parent
ae5da74bb1
commit
e3daf743f2
1 file changed
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user