mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Disallow marking users as registered without a UUID.
This commit is contained in:
committed by
Alex Hart
parent
665d9e31f6
commit
eb48ab1784
@@ -228,9 +228,11 @@ public class Recipient {
|
||||
|
||||
Recipient resolved = resolved(recipientId);
|
||||
|
||||
if (highTrust && !resolved.isRegistered()) {
|
||||
if (highTrust && !resolved.isRegistered() && uuid != null) {
|
||||
Log.w(TAG, "External high-trust push was locally marked unregistered. Marking as registered.");
|
||||
db.markRegistered(recipientId);
|
||||
db.markRegistered(recipientId, uuid);
|
||||
} else if (highTrust && !resolved.isRegistered()) {
|
||||
Log.w(TAG, "External high-trust push was locally marked unregistered, but we don't have a UUID, so we can't do anything.", new Throwable());
|
||||
}
|
||||
|
||||
return resolved;
|
||||
|
||||
Reference in New Issue
Block a user