fix: Service worker precache delete

fix: pubkey in profile metadata breaks cache refresh
fix: non-specific queries not sent to any relays sometimes
fix: sub-query trace not sending "CLOSE"
This commit is contained in:
2023-05-25 11:05:06 +01:00
parent 988416f353
commit f684658183
4 changed files with 23 additions and 40 deletions

View File

@ -41,10 +41,10 @@ export function mapEventToProfile(ev: RawEvent) {
try {
const data: UserMetadata = JSON.parse(ev.content);
return {
...data,
pubkey: ev.pubkey,
npub: hexToBech32("npub", ev.pubkey),
created: ev.created_at,
...data,
loaded: unixNowMs(),
} as MetadataCache;
} catch (e) {