mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Change job scheduling to be relative rather than absolute.
This commit is contained in:
committed by
Nicholas Tinsley
parent
64babe2e42
commit
a911a007d2
@@ -37,9 +37,9 @@ public final class RateLimitUtil {
|
||||
|
||||
ApplicationDependencies.getJobManager().update((job) -> {
|
||||
if (job.getFactoryKey().equals(IndividualSendJob.KEY) && messageIds.contains(IndividualSendJob.getMessageId(job.getSerializedData()))) {
|
||||
return job.withNextRunAttemptTime(System.currentTimeMillis());
|
||||
return job.withNextBackoffInterval(0);
|
||||
} else if (job.getFactoryKey().equals(PushGroupSendJob.KEY) && messageIds.contains(PushGroupSendJob.getMessageId(job.getSerializedData()))) {
|
||||
return job.withNextRunAttemptTime(System.currentTimeMillis());
|
||||
return job.withNextBackoffInterval(0);
|
||||
} else {
|
||||
return job;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user