Fix use of aci instead of serviceId

Fixes #1455
This commit is contained in:
AsamK 2024-02-18 20:48:01 +01:00
parent fd671576a4
commit 7206b4da25

View file

@ -165,11 +165,11 @@ public record RecipientAddress(
} }
public SignalServiceAddress toSignalServiceAddress() { 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() { 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(), number(),
username()); username());
} }