Search in sources :

Example 1 with PushMediaSendJob

use of org.thoughtcrime.securesms.jobs.PushMediaSendJob in project Signal-Android by WhisperSystems.

the class MessageSender method sendMediaPush.

private static void sendMediaPush(Context context, Recipients recipients, long messageId) {
    JobManager jobManager = ApplicationContext.getInstance(context).getJobManager();
    jobManager.add(new PushMediaSendJob(context, messageId, recipients.getPrimaryRecipient().getNumber()));
}
Also used : PushMediaSendJob(org.thoughtcrime.securesms.jobs.PushMediaSendJob) JobManager(org.whispersystems.jobqueue.JobManager)

Aggregations

PushMediaSendJob (org.thoughtcrime.securesms.jobs.PushMediaSendJob)1 JobManager (org.whispersystems.jobqueue.JobManager)1