mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-07-29 00:59:26 +00:00
Only sync e164 if pni is also present
This commit is contained in:
parent
c95a67862e
commit
2a744edd43
@ -92,8 +92,10 @@ public final class StorageSyncModels {
|
||||
|
||||
public static ContactRecord localToRemoteRecord(Recipient recipient, IdentityInfo identity) {
|
||||
final var address = recipient.getAddress();
|
||||
final var pniPresent = address.pni().isPresent();
|
||||
|
||||
final var builder = SignalContactRecord.Companion.newBuilder(recipient.getStorageRecord())
|
||||
.e164(address.number().orElse(""))
|
||||
.e164(pniPresent ? address.number().orElse("") : "")
|
||||
.username(address.username().orElse(""))
|
||||
.profileKey(recipient.getProfileKey() == null
|
||||
? ByteString.EMPTY
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user