mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-28 05:35:44 +00:00
Fix post-transfer emoji search.
This commit is contained in:
committed by
Greyson Parrelli
parent
a577018d03
commit
a188eb64ab
@@ -162,9 +162,10 @@ public class ApplicationMigrations {
|
||||
static final int WALLPAPER_MIGRATION_CLEANUP = 118;
|
||||
static final int AEP_INTRODUCTION = 119;
|
||||
static final int GROUP_EXTRAS_DB_FIX = 120;
|
||||
static final int EMOJI_SEARCH_INDEX_CHECK_2 = 121;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 120;
|
||||
public static final int CURRENT_VERSION = 121;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -743,6 +744,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.GROUP_EXTRAS_DB_FIX, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.EMOJI_SEARCH_INDEX_CHECK_2) {
|
||||
jobs.put(Version.EMOJI_SEARCH_INDEX_CHECK_2, new EmojiSearchIndexCheckMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ package org.thoughtcrime.securesms.registration.util;
|
||||
import org.signal.core.util.logging.Log;
|
||||
import org.thoughtcrime.securesms.dependencies.AppDependencies;
|
||||
import org.thoughtcrime.securesms.jobs.DirectoryRefreshJob;
|
||||
import org.thoughtcrime.securesms.jobs.EmojiSearchIndexDownloadJob;
|
||||
import org.thoughtcrime.securesms.jobs.RefreshAttributesJob;
|
||||
import org.thoughtcrime.securesms.jobs.StorageSyncJob;
|
||||
import org.thoughtcrime.securesms.keyvalue.PhoneNumberPrivacyValues.PhoneNumberDiscoverabilityMode;
|
||||
@@ -48,6 +49,9 @@ public final class RegistrationUtil {
|
||||
.then(new DirectoryRefreshJob(false))
|
||||
.enqueue();
|
||||
|
||||
SignalStore.emoji().clearSearchIndexMetadata();
|
||||
EmojiSearchIndexDownloadJob.scheduleImmediately();
|
||||
|
||||
} else if (!SignalStore.registration().isRegistrationComplete()) {
|
||||
Log.i(TAG, "Registration is not yet complete.", new Throwable());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user