From efcdb7eb66708f4fe0c6c6c55d0306f477c97079 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 16 Apr 2015 12:22:05 -0700 Subject: [PATCH] Add GroupId to PushNotificationReceivedJob Pending message requests should probably be made sequentially. // FREEBIE --- .../thoughtcrime/securesms/jobs/PushNotificationReceiveJob.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/jobs/PushNotificationReceiveJob.java b/src/org/thoughtcrime/securesms/jobs/PushNotificationReceiveJob.java index 9c81b902d5..417fa89b35 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushNotificationReceiveJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushNotificationReceiveJob.java @@ -24,6 +24,7 @@ public class PushNotificationReceiveJob extends PushReceivedJob implements Injec public PushNotificationReceiveJob(Context context) { super(context, JobParameters.newBuilder() .withRequirement(new NetworkRequirement(context)) + .withGroupId("__notification_received") .withWakeLock(true, 30, TimeUnit.SECONDS).create()); }