mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-01 14:16:49 +00:00
Fix typo that caused some invalid ContactRecords to slip through.
We were doing .equals() between an ACI and a UUID, so it was always returning false. Fixed by swithing to the proper check.
This commit is contained in:
@@ -51,7 +51,7 @@ public class ContactRecordProcessor extends DefaultStorageRecordProcessor<Signal
|
||||
if (address == null) {
|
||||
Log.w(TAG, "No address on the ContentRecord -- marking as invalid.");
|
||||
return true;
|
||||
} else if (address.getAci().equals(UuidUtil.UNKNOWN_UUID)) {
|
||||
} else if (!address.hasValidAci()) {
|
||||
Log.w(TAG, "Found a ContactRecord without a UUID -- marking as invalid.");
|
||||
return true;
|
||||
} else if ((self.getAci().isPresent() && address.getAci().equals(self.requireAci())) ||
|
||||
|
||||
Reference in New Issue
Block a user