Skip to content
Snippets Groups Projects
Commit 4a4cf08c authored by Greyson Parrelli's avatar Greyson Parrelli
Browse files

Do not run StorageForcePushJob if you're not registered.

parent ed20c243
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment