mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 19:56:02 +01:00
Clean up bookkeeping around threads.
This commit is contained in:
@@ -79,9 +79,10 @@ public class ApplicationMigrations {
|
||||
static final int DB_AUTOINCREMENT = 37;
|
||||
static final int ATTACHMENT_CLEANUP = 38;
|
||||
static final int LOG_CLEANUP = 39;
|
||||
static final int ATTACHMENT_CLEANUP_2 = 40;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 39;
|
||||
public static final int CURRENT_VERSION = 40;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -347,6 +348,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.LOG_CLEANUP, new DeleteDeprecatedLogsMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.ATTACHMENT_CLEANUP_2) {
|
||||
jobs.put(Version.ATTACHMENT_CLEANUP_2, new AttachmentCleanupMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user