quicker opening of the imessage app, support ios 17 and below again

This commit is contained in:
neon443
2025-11-10 15:14:51 +00:00
parent 6d4eb5da36
commit 1c4ef6896d
8 changed files with 219 additions and 88 deletions

View File

@@ -26,10 +26,10 @@ class EmojiHoarder: ObservableObject {
@Published var downloadedEmojis: Set<String> = []
@Published var searchTerm: String = ""
init(localOnly: Bool = false) {
init(localOnly: Bool = false, skipIndex: Bool = false) {
let localDB = loadLocalDB()
withAnimation { self.emojis = localDB }
buildTrie()
if !skipIndex { buildTrie() }
withAnimation { self.filteredEmojis = [] }
guard !localOnly else { return }
@@ -37,7 +37,7 @@ class EmojiHoarder: ObservableObject {
print("start loading remote db")
await self.loadRemoteDB()
print("end")
await self.buildTrie()
if !skipIndex { await self.buildTrie() }
}
}