Disallow marking users as registered without a UUID.

This commit is contained in:
Greyson Parrelli
2021-08-24 12:21:36 -04:00
committed by Alex Hart
parent 665d9e31f6
commit eb48ab1784
3 changed files with 6 additions and 19 deletions

View File

@@ -175,7 +175,7 @@ public class DirectoryHelper {
recipient = Recipient.resolved(recipientDatabase.getByUuid(uuid).get());
}
} else {
recipientDatabase.markRegistered(recipient.getId());
Log.w(TAG, "Registered number set had a null UUID!");
}
} else if (recipient.hasUuid() && recipient.isRegistered() && hasCommunicatedWith(context, recipient)) {
if (isUuidRegistered(context, recipient)) {