kopia lustrzana https://github.com/ryukoposting/Signal-Android
Do not run StorageForcePushJob if you're not registered.
rodzic
ed20c24326
commit
4a4cf08cd8
|
@ -76,6 +76,11 @@ public class StorageForcePushJob extends BaseJob {
|
||||||
return;
|
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();
|
StorageKey storageServiceKey = SignalStore.storageService().getOrCreateStorageKey();
|
||||||
SignalServiceAccountManager accountManager = ApplicationDependencies.getSignalServiceAccountManager();
|
SignalServiceAccountManager accountManager = ApplicationDependencies.getSignalServiceAccountManager();
|
||||||
RecipientDatabase recipientDatabase = SignalDatabase.recipients();
|
RecipientDatabase recipientDatabase = SignalDatabase.recipients();
|
||||||
|
|
Ładowanie…
Reference in New Issue