mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add support for versioned expiration timers.
Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
committed by
Nicholas Tinsley
parent
4152294b57
commit
1f196f74ff
@@ -151,9 +151,10 @@ public class ApplicationMigrations {
|
||||
static final int CONTACT_LINK_REBUILD = 106;
|
||||
static final int DELETE_SYNC_CAPABILITY = 107;
|
||||
static final int REBUILD_MESSAGE_FTS_INDEX_5 = 108;
|
||||
static final int EXPIRE_TIMER_CAPABILITY = 109;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 108;
|
||||
public static final int CURRENT_VERSION = 109;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -688,6 +689,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.REBUILD_MESSAGE_FTS_INDEX_5, new RebuildMessageSearchIndexMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.EXPIRE_TIMER_CAPABILITY) {
|
||||
jobs.put(Version.EXPIRE_TIMER_CAPABILITY, new AttributesMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user