Do not run StorageForcePushJob if you're not registered.

fork-5.53.8
Greyson Parrelli 2022-04-20 18:52:41 -04:00
rodzic ed20c24326
commit 4a4cf08cd8
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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();