Add zap.stream address to new profiles

This commit is contained in:
2023-07-27 19:08:05 +01:00
parent fed72727ef
commit 3e2336129c

View File

@ -72,12 +72,13 @@ export function LoginSignup({ close }: { close: () => void }) {
}
async function saveProfile() {
const pub = EventPublisher.privateKey(key);
const profile = {
name: username,
picture: avatar
picture: avatar,
lud16: `${pub.pubKey}@zap.stream`
} as UserMetadata;
const pub = EventPublisher.privateKey(key);
const ev = await pub.metadata(profile);
console.debug(ev);
System.BroadcastEvent(ev);