Fix incorrect assertion for syncing pni only contacts.
This commit is contained in:
parent
0cdd56e0ac
commit
a477c3c4d9
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ public final class StorageSyncModels {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static @NonNull SignalContactRecord localToRemoteContact(@NonNull RecipientRecord recipient, byte[] rawStorageId) {
|
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!");
|
throw new AssertionError("Must have either a UUID or a phone number!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue