feat: add drop attachment download migration in case there are a lot of pending failed attachment downloads

This commit is contained in:
0x330a
2023-10-11 15:22:39 +11:00
parent 6f22eb659b
commit 862a47e7e3
3 changed files with 12 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class AttachmentDownloadJob(val attachmentID: Long, val databaseMessageID: Long)
override val maxFailureCount: Int = 2
companion object {
val KEY: String = "AttachmentDownloadJob"
const val KEY: String = "AttachmentDownloadJob"
// Keys used for database storage
private val ATTACHMENT_ID_KEY = "attachment_id"