|
|
@ -27,7 +27,10 @@ public enum SyncExpiriesJob: JobExecutor {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
guard DisappearingMessagesConfiguration.isNewConfigurationEnabled else { return }
|
|
|
|
guard DisappearingMessagesConfiguration.isNewConfigurationEnabled else {
|
|
|
|
|
|
|
|
success(job, false)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var interactionIdsWithNoServerHashByExpiresInSeconds: [TimeInterval: [Int64]] = [:]
|
|
|
|
var interactionIdsWithNoServerHashByExpiresInSeconds: [TimeInterval: [Int64]] = [:]
|
|
|
|
|
|
|
|
|
|
|
@ -76,8 +79,7 @@ public enum SyncExpiriesJob: JobExecutor {
|
|
|
|
).retainUntilComplete()
|
|
|
|
).retainUntilComplete()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
guard !interactionIdsWithNoServerHashByExpiresInSeconds.isEmpty else { return }
|
|
|
|
if !interactionIdsWithNoServerHashByExpiresInSeconds.isEmpty {
|
|
|
|
|
|
|
|
|
|
|
|
Storage.shared.writeAsync { db in
|
|
|
|
Storage.shared.writeAsync { db in
|
|
|
|
JobRunner.upsert(
|
|
|
|
JobRunner.upsert(
|
|
|
|
db,
|
|
|
|
db,
|
|
|
@ -92,6 +94,9 @@ public enum SyncExpiriesJob: JobExecutor {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
success(job, false)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: - SyncExpiriesJob.Details
|
|
|
|
// MARK: - SyncExpiriesJob.Details
|
|
|
|