mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 09:36:47 +00:00
Fix an inconsistent check for the presence/absence of "change number" arguments
This commit is contained in:
1 parent
dce391a248
commit
d00aa1e77a
1 file changed
+2
-2
+2
-2
@@ -64,8 +64,8 @@ public class ChangeNumberManager {
|
||||
IncomingMessage::getDestinationDeviceId,
|
||||
IncomingMessage::getDestinationRegistrationId)),
|
||||
false);
|
||||
} else if (!ObjectUtils.allNull(deviceSignedPreKeys, deviceMessages, pniRegistrationIds)) {
|
||||
throw new IllegalArgumentException("Signed pre-keys, device messages, and registration IDs must be all null or all non-null");
|
||||
} else if (!ObjectUtils.allNull(pniIdentityKey, deviceSignedPreKeys, deviceMessages, pniRegistrationIds)) {
|
||||
throw new IllegalArgumentException("PNI identity key, signed pre-keys, device messages, and registration IDs must be all null or all non-null");
|
||||
}
|
||||
|
||||
final Account updatedAccount;
|
||||
|
||||
Reference in new issue
Block a user