Don't set previousE164s param if cdsi token is empty

Fixes #1576
This commit is contained in:
AsamK 2024-09-08 08:29:54 +02:00
parent cb129db95e
commit bda395191b

View file

@ -231,7 +231,7 @@ public class RecipientHelper {
final CdsiV2Service.Response response;
try {
response = dependencies.getAccountManager()
.getRegisteredUsersWithCdsi(previousNumbers,
.getRegisteredUsersWithCdsi(token.isEmpty() ? Set.of() : previousNumbers,
newNumbers,
account.getRecipientStore().getServiceIdToProfileKeyMap(),
token,