on init, load cached profiles to fuzzy search
This commit is contained in:
@ -42,7 +42,6 @@ export const addEventToFuzzySearch = ev => {
|
||||
};
|
||||
|
||||
export const addCachedMetadataToFuzzySearch = (profile: CachedMetadata) => {
|
||||
// TODO add profiles from Cache
|
||||
requestAnimationFrame(() => {
|
||||
const existing = profileTimestamps.get(profile.pubkey);
|
||||
if (existing) {
|
||||
|
@ -39,6 +39,12 @@ if (CONFIG.httpCache) {
|
||||
};
|
||||
}
|
||||
|
||||
System.ProfileLoader.Cache.hook(() => {
|
||||
System.ProfileLoader.Cache.takeSnapshot().forEach(a => {
|
||||
console.log("Profile: %O", a);
|
||||
});
|
||||
}, "profiles");
|
||||
|
||||
export async function fetchProfile(key: string) {
|
||||
try {
|
||||
throwIfOffline();
|
||||
|
Reference in New Issue
Block a user