Improve ServiceId parsing functions.

This commit is contained in:
Greyson Parrelli
2023-08-09 14:54:06 -04:00
committed by Alex Hart
parent 784f94ecdb
commit 6d2d3ae528
7 changed files with 162 additions and 20 deletions

View File

@@ -129,7 +129,7 @@ public final class RegistrationRepository {
Preconditions.checkNotNull(response.getPniPreKeyCollection(), "Missing PNI prekey collection!");
ACI aci = ACI.parseOrThrow(response.getVerifyAccountResponse().getUuid());
PNI pni = PNI.parseUnPrefixedOrThrow(response.getVerifyAccountResponse().getPni());
PNI pni = PNI.parseOrThrow(response.getVerifyAccountResponse().getPni());
boolean hasPin = response.getVerifyAccountResponse().isStorageCapable();
SignalStore.account().setAci(aci);