mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 19:26:17 +00:00
Do not run StorageForcePushJob if you're not registered.
This commit is contained in:
@@ -76,6 +76,11 @@ public class StorageForcePushJob extends BaseJob {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!SignalStore.account().isRegistered() || SignalStore.account().getE164() == null || Recipient.self().getStorageServiceId() == null) {
|
||||
Log.w(TAG, "User not registered. Skipping.");
|
||||
return;
|
||||
}
|
||||
|
||||
StorageKey storageServiceKey = SignalStore.storageService().getOrCreateStorageKey();
|
||||
SignalServiceAccountManager accountManager = ApplicationDependencies.getSignalServiceAccountManager();
|
||||
RecipientDatabase recipientDatabase = SignalDatabase.recipients();
|
||||
|
||||
Reference in New Issue
Block a user