Fix handling of some PNI initial contact flows.

This commit is contained in:
Greyson Parrelli
2023-08-29 15:57:56 -04:00
parent 75b81a0fd2
commit 099c94c215
5 changed files with 12 additions and 13 deletions

View File

@@ -70,7 +70,7 @@ public class SignalBaseIdentityKeyStore {
public @NonNull SaveResult saveIdentity(SignalProtocolAddress address, IdentityKey identityKey, boolean nonBlockingApproval) {
try (SignalSessionLock.Lock unused = ReentrantSessionLock.INSTANCE.acquire()) {
IdentityStoreRecord identityRecord = cache.get(address.getName());
RecipientId recipientId = RecipientId.fromSidOrE164(address.getName());
RecipientId recipientId = RecipientId.from(ServiceId.fromLibSignal(address.getServiceId()));
if (identityRecord == null) {
Log.i(TAG, "Saving new identity for " + address);