Add zap.stream address to new profiles
This commit is contained in:
@ -72,12 +72,13 @@ export function LoginSignup({ close }: { close: () => void }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function saveProfile() {
|
async function saveProfile() {
|
||||||
|
const pub = EventPublisher.privateKey(key);
|
||||||
const profile = {
|
const profile = {
|
||||||
name: username,
|
name: username,
|
||||||
picture: avatar
|
picture: avatar,
|
||||||
|
lud16: `${pub.pubKey}@zap.stream`
|
||||||
} as UserMetadata;
|
} as UserMetadata;
|
||||||
|
|
||||||
const pub = EventPublisher.privateKey(key);
|
|
||||||
const ev = await pub.metadata(profile);
|
const ev = await pub.metadata(profile);
|
||||||
console.debug(ev);
|
console.debug(ev);
|
||||||
System.BroadcastEvent(ev);
|
System.BroadcastEvent(ev);
|
||||||
|
Reference in New Issue
Block a user