mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 03:11:10 +01:00
Remove thumbnails from the AttachmentDatabase.
Glide can do everything for us now, including video thumbnails.
This commit is contained in:
@@ -39,7 +39,7 @@ public class ApplicationMigrations {
|
||||
|
||||
private static final int LEGACY_CANONICAL_VERSION = 455;
|
||||
|
||||
public static final int CURRENT_VERSION = 18;
|
||||
public static final int CURRENT_VERSION = 19;
|
||||
|
||||
private static final class Version {
|
||||
static final int LEGACY = 1;
|
||||
@@ -60,6 +60,7 @@ public class ApplicationMigrations {
|
||||
static final int VERSIONED_PROFILE = 16;
|
||||
static final int PIN_OPT_OUT = 17;
|
||||
static final int TRIM_SETTINGS = 18;
|
||||
static final int THUMBNAIL_CLEANUP = 19;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -247,6 +248,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.TRIM_SETTINGS, new TrimByLengthSettingsMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.THUMBNAIL_CLEANUP) {
|
||||
jobs.put(Version.THUMBNAIL_CLEANUP, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user