]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/RegistrationManager.java
Refactor contact and profile store
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / RegistrationManager.java
index 9c1eecce60d0573be00330dc5964e5e4c09006a3..b3c524c62d492e7974c84fda5c44763b590edc08 100644 (file)
@@ -165,7 +165,7 @@ public class RegistrationManager implements Closeable {
         account.setUuid(UuidUtil.parseOrNull(response.getUuid()));
         account.setRegistrationLockPin(pin);
         account.getSessionStore().archiveAllSessions();
-        final var recipientId = account.getRecipientStore().resolveRecipient(account.getSelfAddress());
+        final var recipientId = account.getRecipientStore().resolveRecipientTrusted(account.getSelfAddress());
         final var publicKey = account.getIdentityKeyPair().getPublicKey();
         account.getIdentityKeyStore().saveIdentity(recipientId, publicKey, new Date());
         account.getIdentityKeyStore().setIdentityTrustLevel(recipientId, publicKey, TrustLevel.TRUSTED_VERIFIED);