mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Be more persistent about completing the spk job
// FREEBIE
This commit is contained in:
parent
9aec80beda
commit
8c8cd41359
@ -27,8 +27,8 @@ import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule;
|
|||||||
import org.thoughtcrime.securesms.dependencies.InjectableType;
|
import org.thoughtcrime.securesms.dependencies.InjectableType;
|
||||||
import org.thoughtcrime.securesms.dependencies.RedPhoneCommunicationModule;
|
import org.thoughtcrime.securesms.dependencies.RedPhoneCommunicationModule;
|
||||||
import org.thoughtcrime.securesms.dependencies.TextSecureCommunicationModule;
|
import org.thoughtcrime.securesms.dependencies.TextSecureCommunicationModule;
|
||||||
|
import org.thoughtcrime.securesms.jobs.CreateSignedPreKeyJob;
|
||||||
import org.thoughtcrime.securesms.jobs.GcmRefreshJob;
|
import org.thoughtcrime.securesms.jobs.GcmRefreshJob;
|
||||||
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob;
|
|
||||||
import org.thoughtcrime.securesms.jobs.persistence.EncryptingJobSerializer;
|
import org.thoughtcrime.securesms.jobs.persistence.EncryptingJobSerializer;
|
||||||
import org.thoughtcrime.securesms.jobs.requirements.MasterSecretRequirementProvider;
|
import org.thoughtcrime.securesms.jobs.requirements.MasterSecretRequirementProvider;
|
||||||
import org.thoughtcrime.securesms.jobs.requirements.MediaNetworkRequirementProvider;
|
import org.thoughtcrime.securesms.jobs.requirements.MediaNetworkRequirementProvider;
|
||||||
@ -70,6 +70,7 @@ public class ApplicationContext extends Application implements DependencyInjecto
|
|||||||
initializeDependencyInjection();
|
initializeDependencyInjection();
|
||||||
initializeJobManager();
|
initializeJobManager();
|
||||||
initializeGcmCheck();
|
initializeGcmCheck();
|
||||||
|
initializeSignedPreKeyCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -132,4 +133,10 @@ public class ApplicationContext extends Application implements DependencyInjecto
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void initializeSignedPreKeyCheck() {
|
||||||
|
if (!TextSecurePreferences.isSignedPreKeyRegistered(this)) {
|
||||||
|
jobManager.add(new CreateSignedPreKeyJob(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user