Fix empty emoji search index.

This commit is contained in:
Cody Henthorne
2023-07-11 16:59:19 -04:00
committed by Clark Chen
parent 2c74ac8bfa
commit 648506fe04
5 changed files with 79 additions and 1 deletions

View File

@@ -123,6 +123,14 @@ public class EmojiValues extends SignalStoreValues {
return getInteger(SEARCH_VERSION, 0);
}
public void clearSearchIndexMetadata() {
getStore().beginWrite()
.remove(SEARCH_VERSION)
.remove(SEARCH_LANGUAGE)
.remove(LAST_SEARCH_CHECK)
.apply();
}
public @Nullable String getSearchLanguage() {
return getString(SEARCH_LANGUAGE, null);
}