From d3ca54ce869f82b1d3d1856b6ecbad77d369c802 Mon Sep 17 00:00:00 2001 From: Harris Date: Wed, 14 Apr 2021 12:26:34 +1000 Subject: [PATCH] fix: address job.id properly in persistence --- .../main/java/org/session/libsession/messaging/jobs/JobQueue.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt b/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt index 43cefbd13c..d56bdfd9b7 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/jobs/JobQueue.kt @@ -54,7 +54,7 @@ class JobQueue : JobDelegate { // of the order in which the jobs were added. val currentTime = System.currentTimeMillis() jobTimestampMap.putIfAbsent(currentTime, AtomicInteger()) - job.id = jobTimestampMap[currentTime]!!.getAndIncrement().toString() + job.id = currentTime.toString() + jobTimestampMap[currentTime]!!.getAndIncrement().toString() MessagingConfiguration.shared.storage.persistJob(job) }