chore: tweak new user flow

This commit is contained in:
2023-04-18 13:17:50 +01:00
parent 8e2f01fdff
commit 364637ab54
6 changed files with 15 additions and 38 deletions

View File

@ -1,4 +1,4 @@
import { HexKey, TaggedRawEvent, UserMetadata } from "@snort/nostr";
import { HexKey, RawEvent, UserMetadata } from "@snort/nostr";
import { hexToBech32, unixNowMs } from "Util";
import { DmCache } from "./DMCache";
import { UserCache } from "./UserCache";
@ -30,7 +30,7 @@ export interface MetadataCache extends UserMetadata {
zapService?: HexKey;
}
export function mapEventToProfile(ev: TaggedRawEvent) {
export function mapEventToProfile(ev: RawEvent) {
try {
const data: UserMetadata = JSON.parse(ev.content);
return {