Fix bug during registration when self exists already without an e164.
This commit is contained in:
parent
815a988587
commit
a59f5d953a
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ public final class CodeVerificationRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
RecipientDatabase recipientDatabase = DatabaseFactory.getRecipientDatabase(context);
|
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.setProfileSharing(selfId, true);
|
||||||
recipientDatabase.markRegisteredOrThrow(selfId, uuid);
|
recipientDatabase.markRegisteredOrThrow(selfId, uuid);
|
||||||
|
|
Loading…
Add table
Reference in a new issue