mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 05:58:09 +00:00
Do not run StorageSyncJob if you are missing e164/aci.
This commit is contained in:
@@ -176,6 +176,11 @@ public class StorageSyncJob extends BaseJob {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Recipient.self().hasE164() || !Recipient.self().hasAci()) {
|
||||
Log.w(TAG, "Missing E164 or ACI!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (SignalStore.internalValues().storageServiceDisabled()) {
|
||||
Log.w(TAG, "Storage service has been manually disabled. Skipping.");
|
||||
return;
|
||||
|
||||
@@ -142,7 +142,7 @@ public final class StorageSyncValidations {
|
||||
|
||||
if (insert.getContact().isPresent()) {
|
||||
SignalServiceAddress address = insert.getContact().get().getAddress();
|
||||
if (self.getE164().get().equals(address.getNumber().or("")) || self.requireAci().equals(address.getAci())) {
|
||||
if (self.requireE164().equals(address.getNumber().or("")) || self.requireAci().equals(address.getAci())) {
|
||||
throw new SelfAddedAsContactError();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user