Fix an inconsistent check for the presence/absence of "change number" arguments
This commit is contained in:
parent
dce391a248
commit
d00aa1e77a
|
@ -64,8 +64,8 @@ public class ChangeNumberManager {
|
||||||
IncomingMessage::getDestinationDeviceId,
|
IncomingMessage::getDestinationDeviceId,
|
||||||
IncomingMessage::getDestinationRegistrationId)),
|
IncomingMessage::getDestinationRegistrationId)),
|
||||||
false);
|
false);
|
||||||
} else if (!ObjectUtils.allNull(deviceSignedPreKeys, deviceMessages, pniRegistrationIds)) {
|
} else if (!ObjectUtils.allNull(pniIdentityKey, deviceSignedPreKeys, deviceMessages, pniRegistrationIds)) {
|
||||||
throw new IllegalArgumentException("Signed pre-keys, device messages, and registration IDs must be all null or all non-null");
|
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;
|
final Account updatedAccount;
|
||||||
|
|
Loading…
Reference in New Issue