Fix incorrect assertion for syncing pni only contacts.

This commit is contained in:
Cody Henthorne 2023-10-02 12:00:15 -04:00
parent 0cdd56e0ac
commit a477c3c4d9

View file

@ -130,7 +130,7 @@ public final class StorageSyncModels {
}
private static @NonNull SignalContactRecord localToRemoteContact(@NonNull RecipientRecord recipient, byte[] rawStorageId) {
if (recipient.getAci() == null && recipient.getE164() == null) {
if (recipient.getAci() == null && recipient.getPni() == null && recipient.getE164() == null) {
throw new AssertionError("Must have either a UUID or a phone number!");
}