use of org.thoughtcrime.securesms.jobs.PushDecryptMessageJob in project Signal-Android by signalapp.
the class LegacyMigrationJob method scheduleMessagesInPushDatabase.
private static void scheduleMessagesInPushDatabase(@NonNull Context context) {
PushDatabase pushDatabase = SignalDatabase.push();
JobManager jobManager = ApplicationDependencies.getJobManager();
try (PushDatabase.Reader pushReader = pushDatabase.readerFor(pushDatabase.getPending())) {
SignalServiceEnvelope envelope;
while ((envelope = pushReader.getNext()) != null) {
jobManager.add(new PushDecryptMessageJob(context, envelope));
}
}
}
use of org.thoughtcrime.securesms.jobs.PushDecryptMessageJob in project Signal-Android by WhisperSystems.
the class LegacyMigrationJob method scheduleMessagesInPushDatabase.
private static void scheduleMessagesInPushDatabase(@NonNull Context context) {
PushDatabase pushDatabase = SignalDatabase.push();
JobManager jobManager = ApplicationDependencies.getJobManager();
try (PushDatabase.Reader pushReader = pushDatabase.readerFor(pushDatabase.getPending())) {
SignalServiceEnvelope envelope;
while ((envelope = pushReader.getNext()) != null) {
jobManager.add(new PushDecryptMessageJob(context, envelope));
}
}
}
Aggregations