feat: emoji packs
This commit is contained in:
parent
0e550d2511
commit
1e2385da3b
41 changed files with 646 additions and 59 deletions
|
|
@ -759,6 +759,11 @@ class ClientService extends EventTarget {
|
|||
if (cache) {
|
||||
return cache
|
||||
}
|
||||
const indexedDbCache = await indexedDb.getReplaceableEventByCoordinate(coordinate)
|
||||
if (indexedDbCache) {
|
||||
this.replaceableEventCacheMap.set(coordinate, indexedDbCache)
|
||||
return indexedDbCache
|
||||
}
|
||||
} else if (eventId) {
|
||||
const cache = this.eventCacheMap.get(eventId)
|
||||
if (cache) {
|
||||
|
|
@ -1356,6 +1361,10 @@ class ClientService extends EventTarget {
|
|||
return this.fetchReplaceableEvent(pubkey, kinds.Pinlist)
|
||||
}
|
||||
|
||||
async fetchUserEmojiListEvent(pubkey: string) {
|
||||
return this.fetchReplaceableEvent(pubkey, kinds.UserEmojiList)
|
||||
}
|
||||
|
||||
async updateBlossomServerListEventCache(evt: NEvent) {
|
||||
await this.updateReplaceableEventCache(evt)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue