diff --git a/lib/src/main/java/org/asamk/signal/manager/storage/recipients/RecipientAddress.java b/lib/src/main/java/org/asamk/signal/manager/storage/recipients/RecipientAddress.java index b655e067..d0bd033e 100644 --- a/lib/src/main/java/org/asamk/signal/manager/storage/recipients/RecipientAddress.java +++ b/lib/src/main/java/org/asamk/signal/manager/storage/recipients/RecipientAddress.java @@ -165,11 +165,11 @@ public record RecipientAddress( } public SignalServiceAddress toSignalServiceAddress() { - return new SignalServiceAddress(aci.orElse(ACI.UNKNOWN), number); + return new SignalServiceAddress(serviceId().orElse(ACI.UNKNOWN), number); } public org.asamk.signal.manager.api.RecipientAddress toApiRecipientAddress() { - return new org.asamk.signal.manager.api.RecipientAddress(aci().map(ServiceId::getRawUuid), + return new org.asamk.signal.manager.api.RecipientAddress(serviceId().map(ServiceId::getRawUuid), number(), username()); }