mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 18:55:12 +00:00
Fix bug during registration when self exists already without an e164.
This commit is contained in:
committed by
Alex Hart
parent
815a988587
commit
a59f5d953a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user