Fix bug during registration when self exists already without an e164.

fork-5.53.8
Cody Henthorne 2021-03-25 10:31:59 -04:00 zatwierdzone przez Alex Hart
rodzic 815a988587
commit a59f5d953a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -238,7 +238,7 @@ public final class CodeVerificationRequest {
}
RecipientDatabase recipientDatabase = DatabaseFactory.getRecipientDatabase(context);
RecipientId selfId = recipientDatabase.getOrInsertFromE164(credentials.getE164number());
RecipientId selfId = Recipient.externalPush(context, uuid, credentials.getE164number(), true).getId();
recipientDatabase.setProfileSharing(selfId, true);
recipientDatabase.markRegisteredOrThrow(selfId, uuid);